Created
November 28, 2022 02:12
merge multiple commits
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 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