Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

git

flutter

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

like image 777
Ramses Kouam Avatar asked Jun 29 '20 08:06

Ramses Kouam


2 Answers

git rm --cached .flutter-plugins-dependencies

should solve your problem

like image 75
AVEbrahimi Avatar answered Sep 29 '22 21:09

AVEbrahimi


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?

like image 44
Rajesh Jr. Avatar answered Sep 29 '22 22:09

Rajesh Jr.