Answers for "after checking out a previous commit go back to latest commit"

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
0

git pull from previous commit

git checkout -b old-state 0d1d7fc32
Posted by: Guest on July-18-2020

Code answers related to "after checking out a previous commit go back to latest commit"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language