3 ms·
You can also git add -p, but that's a habit you have to develop.
by coherentpony 10y ago
You can also git add -p, but that's a habit you have to develop.
- pimterry 10y agoI built this mostly because I really like git add -p, but afaict it doesn't work at all for adding totally new files, and it's easy to miss things in the middle of big chunks of changes. But yeah, that's exactly the inspiration.
- abusque 10y ago> but afaict it doesn't work at all for adding totally new files You can use git add --intent-to-add on your new file (or -N for short), and then use git add -p as usual. You can then use the edit mode to remove hunks you don't want to commit just yet. Not quite as convenient as on an already tracked file, but it's reasonably usable.