2 ms·
> I realize that I've actually made three separate subchanges so I do partial stages to create each commit. You can trivially replicate that without staging by
by masklinn 9y ago
> I realize that I've actually made three separate subchanges so I do partial stages to create each commit.
You can trivially replicate that without staging by amending the HEAD commit, or building a bunch of partial commits then folding them with rebase -i. You can even do that automatically by committing with --fixup or --squash
- uiri 9y agoThat assumes that I'm making multiple smaller commits along the way. I'm not. Without staging, I'm stuck making one big commit. Splitting a single big commit into multiple smaller commits with an interactive rebase is dependent upon the staging area too.
- masklinn 9y ago> That assumes that I'm making multiple smaller commits along the way. I'm not. Without staging, I'm stuck making one big commit. Errr… no you're not. `commit -p` exists.