Skip to content

Instantly share code, notes, and snippets.

@killerbytes
Created November 28, 2022 02:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save killerbytes/df2e4ea9ccdcd687b6b83c5f74aa4513 to your computer and use it in GitHub Desktop.
Save killerbytes/df2e4ea9ccdcd687b6b83c5f74aa4513 to your computer and use it in GitHub Desktop.
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