Created
August 3, 2016 10:36
-
-
Save eslam-mahmoud/bfef10371ed7ec7243d97179fd637b6c to your computer and use it in GitHub Desktop.
git: How to ignore all present untracked files?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//If you instead want to permanently ignore currently untracked files you can, from the root of your project, launch: | |
$ git status --porcelain | grep '^??' | cut -c4- >> .gitignore |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
from http://stackoverflow.com/questions/11542687/git-how-to-ignore-all-present-untracked-files