Skip to content

Instantly share code, notes, and snippets.

@jmrnilsson
Created December 2, 2016 14:27
Show Gist options
  • Save jmrnilsson/e88bfa1eee08b61e35d18f331cde19c1 to your computer and use it in GitHub Desktop.
Save jmrnilsson/e88bfa1eee08b61e35d18f331cde19c1 to your computer and use it in GitHub Desktop.
# https://github.com/ginatrapani/todo.txt-android/wiki/Squash-All-Commits-Related-to-a-Single-Issue-into-a-Single-Commit
$ git rebase -i HEAD~4
h1. Optionally force push
But alternatively start with making a new branch
$ git push origin branch-name --force
$ git commit --amend
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment