Run into strange issue today, i had added few files/path of the files in .gitignore, though while doing git status it were keep coming up. I explicitly specified the file names in .gitignore, however it ignored my additions to .gitignore :(
After spending some time, went to stackoverflow/google and figured the solution.
If you running into similar issue, following is the solution:
Remove the cache -
git rm -r --cached .
This removes everything from the index, then just run:
git add .
Commit it:
git commit -m ".gitignore cache fix"
It should be fine now, check -
git status
No comments:
Post a Comment