Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git delete last commit local and remote

# Undo the last commit locally 
git rebase -i HEAD~1

# Push to update the remote branch
git push --force
 
PREVIOUS NEXT
Tagged: #git #delete #commit #local #remote
ADD COMMENT
Topic
Name
3+5 =