Skip to content

Instantly share code, notes, and snippets.

@MarioBinder
Created October 29, 2018 08:44
Show Gist options
  • Select an option

  • Save MarioBinder/f39ee856a585c0a0196f93984b9b0273 to your computer and use it in GitHub Desktop.

Select an option

Save MarioBinder/f39ee856a585c0a0196f93984b9b0273 to your computer and use it in GitHub Desktop.
How to make Git “forget” about a file that was tracked but is now in .gitignore?
git rm -r --cached .
git add .
git commit -am "Remove ignored files"
//via https://stackoverflow.com/a/19095988/119109
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment