Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git undo pushed commit

git reset <previous label or sha1>
git commit -am "commit message"
git push -f <remote-name> <branch-name>  //  git push -f origin master
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #git #undo #pushed #commit
ADD COMMENT
Topic
Name
3+8 =