- Keep your .gitignore file.
- Clear your GIT cache. Don’t worry, this won’t delete any of your local files, just what GIT is tracking.
git rm -r --cached . - Add everything in your project. Your .gitignore file will exclude what you want to ignore now and start tracking the good stuff.
git add . - Commit your changes.
git commit -m "Now my .gitignore file works correctly!"
No comments:
Post a Comment