Saturday, April 4, 2015

Git: How to add all untrackable file in command line?

You can try either of the following:

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 .


Reference: http://stackoverflow.com/questions/3498035/git-add-all-files-modified-deleted-and-untracked

No comments:

Post a Comment