Last active
August 29, 2015 14:01
-
-
Save umair-me/9b3873c3119e72229ede to your computer and use it in GitHub Desktop.
Remove commited ignored files .gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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