Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rjpcasalino/3aae847354fb5741c41d5ff73fceb466 to your computer and use it in GitHub Desktop.
Save rjpcasalino/3aae847354fb5741c41d5ff73fceb466 to your computer and use it in GitHub Desktop.
retroactively add items to .gitignore
// make change to .gitignore
git rm --cached <filename>
// or, for all files
git rm -r --cached .
git add .
// then
git add -u
git commit -m "manually delete files"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment