Skip to content

Instantly share code, notes, and snippets.

@jokroese
Created November 13, 2020 12:13
Show Gist options
  • Save jokroese/38cb30313c6834698de2e9f1b127844d to your computer and use it in GitHub Desktop.
Save jokroese/38cb30313c6834698de2e9f1b127844d to your computer and use it in GitHub Desktop.
Stop tracking files added to .gitignore
for file in `cat .gitignore` ; do git rm -r --cached $file; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment