Skip to content

Instantly share code, notes, and snippets.

@ajaegers
Created April 4, 2015 15:10
Show Gist options
  • Save ajaegers/4a739b89e4274ffb2a69 to your computer and use it in GitHub Desktop.
Save ajaegers/4a739b89e4274ffb2a69 to your computer and use it in GitHub Desktop.
Making git forget a file that was tracked but is now in .gitignore
git rm -r --cached .
git add .
git commit -am "Remove ignored files"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment