Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

delete last pushed commit

$ git reset <previous label or sha1>
$ git commit -am "blabla"                    <--- optional
$ git push -f <remote-name> <branch-name>    
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #delete #pushed #commit
ADD COMMENT
Topic
Name
9+6 =