GIT .gitignore Cleanup - gecko-8/devwiki GitHub Wiki

Up

Use this guide if you have files in your GIT repository that should be ignored based on changes to your .gitignore file.

  1. Commit all changes including your .gitignore file.
  2. Remove everything from the repo:
    git rm -r --cached .
    
    IMPORTANT: --cached flag will ensure you don't actually delete your source files, just the index.
  3. Re-add files:
    git add .
    
  4. Commit the changes:
    git commit -m ".gitignore cleanup"
    
  5. Push to remote (optional):
    git push origin <branch>
    
⚠️ **GitHub.com Fallback** ⚠️