Ramses Kouam
Ramses Kouam

Reputation: 571

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

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

Upvotes: 15

Views: 7806

Answers (2)

Rajesh
Rajesh

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

AVEbrahimi
AVEbrahimi

Reputation: 19184

git rm --cached .flutter-plugins-dependencies

should solve your problem

Upvotes: 34

Related Questions