Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git delete last commit after push

git reset --hard HEAD~1
git push -f <remote> <branch>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #git #delete #commit #push
ADD COMMENT
Topic
Name
6+3 =