Skip to content

Instantly share code, notes, and snippets.

@carlosrabelo
Last active June 23, 2023 18:15
Show Gist options
  • Save carlosrabelo/b788703a2925848157e9ff740389374a to your computer and use it in GitHub Desktop.
Save carlosrabelo/b788703a2925848157e9ff740389374a to your computer and use it in GitHub Desktop.
squash all commits in one
git-squash-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