how to put .flutter-plugins-dependencies in the gitignore?

Viewed 3946

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:

enter image description here

the .flutter-plugins-dependencies file always appears in my commits. i don't know what i should do

2 Answers

git rm --cached .flutter-plugins-dependencies

should solve your problem

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?

Related