RSS

Add untracked files to git recursively

04 Oct

Have you ever needed to add all of the untracked files to git but due to your .gitignore file’s settings your files are not added when you do:

“git add .”

Use this command:

“git ls-files –others .\build\tools | xargs git add -f”

 

 

Advertisements
 
Leave a comment

Posted by on October 4, 2013 in Uncategorized

 

Tags:

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: