Tags: #git #patch #staged #untracked
If you’ve created a bunch of new files in git, use git add --intent-to-add
(or git add -N
) to move the files from untracked to unstaged.
This way you can incrementally stage hunks similar to how you can stage hunks from previously committed files.