Skip to content

Instantly share code, notes, and snippets.

@rwarner
Last active August 29, 2015 14:01
Show Gist options
  • Save rwarner/93b29743924790fd7a08 to your computer and use it in GitHub Desktop.
Save rwarner/93b29743924790fd7a08 to your computer and use it in GitHub Desktop.
Refreshing the git ignore file in your repo after commit .gitignore

git rm -r --cached .

This removes any changed files from the index(staging area), then just run:

git add .

git commit -m ".gitignore is now working"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment