Answers for "command to revert git commit"

33

revert local commit git bash

git reset --soft HEAD~1
Posted by: Guest on March-30-2020
4

git revert a commit

git revert --no-commit 0766c053..HEAD
git commit
Posted by: Guest on April-18-2020
0

git revert a commit

git reset 'HEAD@{1}'
Posted by: Guest on June-16-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language