Skip to content

Instantly share code, notes, and snippets.

@PabloVallejo
Created June 8, 2013 19:47
Show Gist options
  • Save PabloVallejo/5736360 to your computer and use it in GitHub Desktop.
Save PabloVallejo/5736360 to your computer and use it in GitHub Desktop.
Useful tasks that may necessary when using git.
# 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