Skip to content

Instantly share code, notes, and snippets.

@lewkoo
Created December 10, 2014 07:50
Show Gist options
  • Save lewkoo/3dff7cb0a0cd3341fa54 to your computer and use it in GitHub Desktop.
Save lewkoo/3dff7cb0a0cd3341fa54 to your computer and use it in GitHub Desktop.
Add all untracked files to .gitignore
git status -s | grep -e "^\?\?" | cut -c 4- >> .gitignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment