Skip to content

Instantly share code, notes, and snippets.

@djravine
Created July 2, 2019 06:07
Show Gist options
  • Save djravine/84b0f9f8d5553cd513d67b1ae6cfb4b2 to your computer and use it in GitHub Desktop.
Save djravine/84b0f9f8d5553cd513d67b1ae6cfb4b2 to your computer and use it in GitHub Desktop.
GIT RESET - Squash all commits into 1
git reset $(git commit-tree HEAD^{tree} -m "A new start")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment