Stage new and modified files only in current folder.
Adding only tracked files to index with git add -u and ignoring untracked files for next commit. 02/12/2014 - GIT. Assume that you have a lot of tracked and ...
It's easy with git add -i . Type a (for "add untracked"), then * (for "all"), then q (to quit) and you're done. To do it with a single command: echo -e ...
It only adds the content of the specified file(s) at the time the add command is run ... Apply the "clean" process freshly to all tracked files to forcibly add them again ...
Ideally your .gitignore should prevent the untracked ( and ignored )files from being shown in status, added using git add etc. So I would ask you ...
next commit should record all modifications of tracked files in the working tree and
git add -u will look at all the already tracked files. Then it will
git stash list stash@{0}: WIP on master: 049d078 Create index file stash @{1}: WIP
Basically, we want to ignore new files or folders i.e. un-tracked files.
In order to begin tracking a new file, you use the command git add .