Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

remove last commit

git commit -m "Something terribly misguided"
git reset HEAD~                              
[ edit files as necessary ]                  
git add .                                    
git commit -c ORIG_HEAD 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #commit
ADD COMMENT
Topic
Name
8+6 =