Answers for "checkout latest commit"

5

git checkout commit

git checkout <commit>
Posted by: Guest on May-08-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