Created
November 28, 2022 02:12
-
-
Save killerbytes/df2e4ea9ccdcd687b6b83c5f74aa4513 to your computer and use it in GitHub Desktop.
merge multiple commits
This file contains 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 rebase -i HEAD~<num_of_commits> | |
# leave first commit "pick" and change others to "squash" | |
# leave just one commit message and comment the others | |
git commit -a | |
git push -f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment