Answers for "how to delete the most second commit and keep the most recent commit"

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 delete the most second commit and keep the most recent commit"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language