Skip to content

Instantly share code, notes, and snippets.

@srdjanRakic
Created October 4, 2018 12:07
Show Gist options
  • Save srdjanRakic/99a642033742ec022d95a059abd945f2 to your computer and use it in GitHub Desktop.
Save srdjanRakic/99a642033742ec022d95a059abd945f2 to your computer and use it in GitHub Desktop.
Squash all git history into a single commit

git reset $(git commit-tree HEAD^{tree} -m 'Initial commit')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment