Skip to content

Instantly share code, notes, and snippets.

@Danjavia
Forked from PabloVallejo/git-cheat.sh
Created January 16, 2014 13:39
Show Gist options
  • Save Danjavia/8455106 to your computer and use it in GitHub Desktop.
Save Danjavia/8455106 to your computer and use it in GitHub Desktop.
# Remove cached repository in order to .gitignore to take effect after
# several commit have been made.
git rm -r --cached .
git add .
git commit -m "Removed cached repository, now .gitignore should work fine."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment