Reputation: 571
i would like to ignore .flutter-plugins-dependencies file when i run a git push command, i have tried to remove the file from cache through this command
git rm -r --cached
but it doesn't work. also i tried to indicate it in .gitignore file:
the .flutter-plugins-dependencies file always appears in my commits. i don't know what i should do
Upvotes: 15
Views: 7806
Reputation: 4008
First add .flutter-plugins-dependencies
to .gitignore
file, then follow these steps
git rm -r --cached . #untrack files
git add . #re-adding the files
git commit -m "issue fixed" #commiting changes
git push #pushing changes
Refer: Why is .gitignore not ignoring my files?
Upvotes: 8
Reputation: 19184
git rm --cached .flutter-plugins-dependencies
should solve your problem
Upvotes: 34