Skip to content

Instantly share code, notes, and snippets.

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