Answers for "how to open previous commit in git"

3

git tag a previous commit

git tag -a v1.2 9fceb02 -m "Message here"
Posted by: Guest on June-11-2020
2

after checking out a previous commit go back to latest commit

git checkout <commit hash>	# go to previous commit
git revert <commit hash>  	# revert action of going to previous commit
Posted by: Guest on July-27-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language