git add --patch
...is your friend if you want to leave all your changes unstaged for awhile then break it out into multiple commits later. git add --patch
...is your friend if you want to leave all your changes unstaged for awhile then break it out into multiple commits later.
To add, when I’m breaking my changes down into multiple parts for review, I tend to:
The squashing part is vital because otherwise you enter merge conflict hell with the rebase.How about:
I use this because you can have several commits marked e.g. "commit1". Then you make a final interactive rebase to squash them together.