Created
August 26, 2020 04:21
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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