Is there a way to add all files no matter what you do to them whether it be deleted, untracked, etc? like for a commit. I just don t want to have to git add or git rm all my files every time I commit, especially when I m working on a large product.
Git add - Git add all files modified deleted and untracked
De openkb
Sommaire |
Questions
Answers
Try:
git add -A
Warning, starting git 2.0 (mid 2013), this will always stage files on the all working tree .
If you want to stage files that are only under the current path of your working tree, then you need to use:
$ git add -A .
http://stackoverflow.com/a/16162511/6309 http://stackoverflow.com/a/16162511/6309
Source
License : cc by-sa 3.0
http://stackoverflow.com/questions/3498035/git-add-all-files-modified-deleted-and-untracked