Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PhpStorm disable watching for vendor git repositories

I am using git and PhpStorm for my project. When i trying to push, or pull, or to do any else action, i also see git repositories from /vendor (composer).

Push window

enter image description here

How to disable they for PhpStorm?

UPDATE:

/vendor already in .gitignore

# composer vendor dir
/vendor
like image 207
Egretos Avatar asked Oct 11 '25 19:10

Egretos


2 Answers

I find the solution! It was in File->Settings->Version Control. I Just unregister vendor roots. Thank all for help!

enter image description here

like image 171
Egretos Avatar answered Oct 14 '25 10:10

Egretos


In the root of your project just create/edit the .gitignore file and add the following

/vendor

You can do this for any directory you would like

if you want to include a sub-directory of a directory you exclude just add something like this.

!/vendor/bin

Here are the relevant git docs about it: https://git-scm.com/docs/gitignore

Edit: I saw you did indeed have a correct .gitignore [assumption based on your reaction to the comment] If you have already worked with a file in phpstorm and added it to the ignore pattern later phpstorm does nothing with it, you should be manually removing the folder from your machine and from the repo [by deleting and commiting/pushing].

Just delete it and commit it to origin. and just use composer to reinstall. voila!


Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!