Created
April 16, 2025 13:12
-
-
Save bestickley/d093477f3d40c1db57a77a3fa2e47ef3 to your computer and use it in GitHub Desktop.
Git Squash Feature Branch To One 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 switch feat-my-feature | |
| git reset --soft $(git merge-base main HEAD) | |
| git commit -m "feat: my feature" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment