Last active
February 7, 2026 07:22
-
-
Save avin/a6387311fc12bbdfea0a74c728e4f6ea to your computer and use it in GitHub Desktop.
Squash all Git commits into a single commit
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 checkout --orphan __squash_tmp | |
| git add -A | |
| git commit -m "init" | |
| git branch -M master | |
| git push -f origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment