Skip to content

Instantly share code, notes, and snippets.

@v-thomp4
Created May 23, 2018 16:36
Show Gist options
  • Save v-thomp4/35a901a884b7cbd7e456ce3b1ff22439 to your computer and use it in GitHub Desktop.
Save v-thomp4/35a901a884b7cbd7e456ce3b1ff22439 to your computer and use it in GitHub Desktop.
remove commit git

rebase last 5 commits

git rebase -i HEAD~5  
git rebase --edit-todo  
(drop)  
git rebase --continue  
git push --force origin master  
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment