Answers for "how to go back to previous commits on git"

-1

how to go back 1 commit i'

$ git reset --soft HEAD~1  // The last commit will be removed from your Git History
Posted by: Guest on December-08-2021
0

how to go to a previous commit state

# This will detach your HEAD, that is, leave you with no branch checked out:
git checkout 0d1d7fc32
Posted by: Guest on April-10-2020

Code answers related to "how to go back to previous commits on git"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language