Skip to content

Instantly share code, notes, and snippets.

@andreyshuster
Created August 31, 2021 07:51
Show Gist options
  • Save andreyshuster/02e9d3729dc412558ba317746d67a74a to your computer and use it in GitHub Desktop.
Save andreyshuster/02e9d3729dc412558ba317746d67a74a 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