Skip to content

Instantly share code, notes, and snippets.

@JustATestName144
Created January 30, 2018 06:06
Show Gist options
  • Save JustATestName144/4b2d6b963a6faaff7f8697ecc1a54a34 to your computer and use it in GitHub Desktop.
Save JustATestName144/4b2d6b963a6faaff7f8697ecc1a54a34 to your computer and use it in GitHub Desktop.
If you already have a file checked in, and you want to ignore it, Git will not ignore the file if you add a rule later. In those cases, you must untrack the file first, by running the following command in your terminal:
git rm --cached FILENAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment