Git vendor catalog workflow

I have two branches in git repo master and production . The main difference is that during the production process, the supplier directory was checked and is missing in .gitignore

My problem is when I switch from production to master

git checkout master 

the entire supplier directory is unpacked.

What are my options?

+7
git composer-php
source share
1 answer

Try skip-worktree '(from git update-index )

 git update-index --skip-worktree -- vendor 

When on the production branch.
See if this directory is deleted when checking the master branch.

+4
source share

All Articles