Answers for "how to remove most recent commit"

-1

remove last commit git

git reset --hard HEAD^
git push origin -f
Posted by: Guest on October-01-2020
2

undo most recent commit

$ git commit -m "some comment"                
$ git reset HEAD~                                          
<< edit files as necessary >>                              
$ git add ...                                              
$ git commit -c ORIG_HEAD
Posted by: Guest on June-18-2020

Code answers related to "how to remove most recent commit"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language