Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to revert last pushed commit

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