Created
November 16, 2021 10:29
-
-
Save Phoenix124/492d59899f267ca8ed9cac63f141f41d to your computer and use it in GitHub Desktop.
Squash commits in branch
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 merge-base HEAD BRANCH_YOU_BRANCHED_FROM | |
git reset --soft COMMIT_HASH | |
git commit -am 'This is the new re-created one commit' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment