Skip to content

Instantly share code, notes, and snippets.

@Cezarion
Last active December 13, 2015 22:39
Show Gist options
  • Save Cezarion/4985753 to your computer and use it in GitHub Desktop.
Save Cezarion/4985753 to your computer and use it in GitHub Desktop.
Git > suppression des fichiers ingnorésdu dépôt
git rm -r --cached .
This removes everything from the index, then just run:
git add .
Commit it:
git commit -m ".gitignore is now working"
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