Skip to content

Instantly share code, notes, and snippets.

@juzhiyuan
Last active October 17, 2019 09:16
Show Gist options
  • Save juzhiyuan/daac7ade0b3cabdecea9db6dbee6cab9 to your computer and use it in GitHub Desktop.
Save juzhiyuan/daac7ade0b3cabdecea9db6dbee6cab9 to your computer and use it in GitHub Desktop.
Squash All Commits Into One
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