GIT .gitignore Cleanup - gecko-8/devwiki GitHub Wiki
Use this guide if you have files in your GIT repository that should be ignored based on changes to your .gitignore file.
- Commit all changes including your .gitignore file.
- Remove everything from the repo:
IMPORTANT: --cached flag will ensure you don't actually delete your source files, just the index.
git rm -r --cached .
- Re-add files:
git add .
- Commit the changes:
git commit -m ".gitignore cleanup"
- Push to remote (optional):
git push origin <branch>