Often when using git, I find myself in this situation:
- I have changes in several files, but I want only a part of them.
- I have added some raw files that I want to track and commit.
The solution to the first part is easy; I launched:
git add -p
Then I choose which stages to stage and which hunks remain in my working tree, but are non-stationary. However, git patch mode skips unnecessary files.
What I would like to do is something like:
git add --untracked
But such an option does not exist.
If I have, say, six unprocessed files, I can use them addonline and with a parameter add untracked, for example:
git add -i
a<CR>
1<CR>
2<CR>
3<CR>
4<CR>
5<CR>
6<CR>
<CR>
q<CR>
, , , . ?