Created
May 15, 2025 18:47
-
-
Save adamlutz/4d44dcb3786b79eb432e91c3e4dfcf87 to your computer and use it in GitHub Desktop.
git merge-base squash
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 merge-base HEAD origin/main | |
git reset --soft <commit-hash-from-previous-step> | |
git commit -a -m "Squash commit, the one that will show up" | |
git push origin --force-with-lease |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment