Last active
December 13, 2015 22:39
-
-
Save Cezarion/4985753 to your computer and use it in GitHub Desktop.
Git > suppression des fichiers ingnorésdu dépôt
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
git rm -r --cached . | |
This removes everything from the index, then just run: | |
git add . | |
Commit it: | |
git commit -m ".gitignore is now working" |
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
git reset HEAD --mixed and it will "reset" the index to the state it was before you started adding files / adding modifications to the index ( via git add ) In this case, the working copy and the index ( or staging ) were in sync, but you made the HEAD and the index to be in sync after the reset. | |
git reset HEAD --mixed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment