Skip to content

Instantly share code, notes, and snippets.

@ishmaelahmed
Last active August 29, 2015 14:00
Show Gist options
  • Save ishmaelahmed/bd9f11bbf5ec98c8c8e8 to your computer and use it in GitHub Desktop.
Save ishmaelahmed/bd9f11bbf5ec98c8c8e8 to your computer and use it in GitHub Desktop.
So you want to add your untracked files to your .gitignore
#*
* This will list all the untracked files in your git
* repo and append them to .gitignore
*#
git ls-files --others --exclude-standard >> .gitignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment