Created
December 7, 2020 10:21
-
-
Save ovitente/773d6360a268eac637915ec5492a43ee to your computer and use it in GitHub Desktop.
Git Rebase
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 checkout <your-branch> | |
git reset --soft HEAD~<n> # this is the number of commits you want to squash down | |
git commit -m "<message>" | |
git push -f origin <your-branch> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment