Skip to content

Instantly share code, notes, and snippets.

@kobybibas
Created September 16, 2022 16:21
Show Gist options
  • Save kobybibas/44920647e2939a07aac418831227a917 to your computer and use it in GitHub Desktop.
Save kobybibas/44920647e2939a07aac418831227a917 to your computer and use it in GitHub Desktop.
Squash commits
git reset --soft HEAD~6
git commit -m "New message for the combined commit"
git push origin main --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment