Skip to content

Instantly share code, notes, and snippets.

@shiny-eel
Created August 26, 2020 04:21
Show Gist options
  • Save shiny-eel/683c374746f840331865ec3671c5d7b4 to your computer and use it in GitHub Desktop.
Save shiny-eel/683c374746f840331865ec3671c5d7b4 to your computer and use it in GitHub Desktop.
[Fast git squash] Unsafe but efficient way of moving multiple commit changes into the a previous commit #git
git branch featureBranch
# where n is the number of commits to squash
git reset --soft HEAD~[n]
git commit --amend
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment