Skip to content

Instantly share code, notes, and snippets.

@umair-me
Last active August 29, 2015 14:01
Show Gist options
  • Save umair-me/9b3873c3119e72229ede to your computer and use it in GitHub Desktop.
Save umair-me/9b3873c3119e72229ede to your computer and use it in GitHub Desktop.
Remove commited ignored files .gitignore
Try this:
git rm -r --cached .
git add .
git commit -am "Remove ignored files"
Remove all items from index.
git rm -r -f --cached .
Rebuild index.
git add .
Make new commit
git commit -m "Remove ignored files"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment