2 ms·
> Advanced committing (hunk level) is the one thing I use a GUI for. Hunk level commits is what git add -p [s/e] lets you do. You can split hunks with s, and
by nickjj 6y ago
> Advanced committing (hunk level) is the one thing I use a GUI for.
Hunk level commits is what git add -p [s/e] lets you do.
You can split hunks with s, and if you need even more fine grain control you can hit e which opens that specific hunk in your $EDITOR and then you can pick whatever you want to commit.
- nicoburns 6y agoYeah, I know you can do that. It's just that while I prefer the CLI for most tasks, I find it's much easier to do hunk selection using a GUI.
- barrkel 6y agomagit lets you stage each hunk, or if you want finer grained control, simply select the lines you want to commit or exclude and it will just stage / unstage those lines. It's better than editing a patch file; it's much better than `git add -i`.