I am trying to add all files that is tracked. git add .
seems to add all files regardless of tracking status. Is there a git command for adding all files in git status -uno
?
Asked
Active
Viewed 676 times
3

Mureinik
- 297,002
- 52
- 306
- 350

user445670
- 179
- 8
-
1use this `git add -A` – neshkeev Sep 08 '15 at 16:27
-
possible duplicate of [Git commit all files using single command](http://stackoverflow.com/questions/2419249/git-commit-all-files-using-single-command) – neshkeev Sep 08 '15 at 16:27
-
possible duplicate of [Difference between "git add -A" and "git add ."](http://stackoverflow.com/questions/572549/difference-between-git-add-a-and-git-add) – SnoringFrog Sep 08 '15 at 16:35
-
@zaratustra `git add -A` actually adds all files (include untracked files) – user445670 Sep 08 '15 at 16:37
1 Answers
3
git add -u
(or --update
) will add any file that was previously tracked by git. git add -A
will add all the the files, including those that weren't previously tracked.

Mureinik
- 297,002
- 52
- 306
- 350