Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

undo most recent commit

$ git commit -m "some comment"                
$ git reset HEAD~                                          
<< edit files as necessary >>                              
$ git add ...                                              
$ git commit -c ORIG_HEAD
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #undo #commit
ADD COMMENT
Topic
Name
9+2 =