2

I am farly new to composer. however I have been using it without any issues until now. My issues is that every time i run either composer update or install all files under my vendor folder gets into my untracked list in git. I also have a .gitignore to prevent the "vendor" from being tracked, but apparently is not doing what is suppose to do. My .gitignore file is below.

# phpunit itself is not needed
phpunit.phar
# local phpunit config
/phpunit.xml

# ignore sub directory for dev installed apps and extensions
/apps
/extensions

#custom
runtime/
web/

/vendor

!vendor/dixonsatit/
!vendor/dixonsatit/yii2-agency-theme/dist/img/
!vendor/dixonsatit/yii2-agency-theme/dist/css/

Any tips will be helpful.

zeid10
  • 511
  • 8
  • 28

1 Answers1

0

First commit your current changes, then run following commands on top folder:

git rm -r --cached .
git add .
git commit -m "fixed untracked files"

Ref link 1 Ref link 2

Community
  • 1
  • 1
Sajjad Dehghani
  • 640
  • 1
  • 6
  • 15
  • I did ran those commands before, it seemed to work, meaning all vendor files got untracked. But as soon as i ran composer install/update the vendor files came back. – zeid10 Apr 03 '17 at 12:47