Answers for "commit git to previous commit"

1

how to go back to last git commit

git reset --hard branch_name #Reverts all modified files to last commit on branch
Posted by: Guest on December-29-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 "Shell/Bash"

Browse Popular Code Answers by Language