git workflow with vendor directory

I have two branches in my git repo master and production . The main difference is that in production, the vendor directory has been checked in and is not present in the .gitignore

My issue is when I switch from production to master

git checkout master

the whole vendor directory gets wipped out.

What are my options?


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

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

When on the branch production .
See if, when checking out the master branch, that directory is deleted.

链接地址: http://www.djcxy.com/p/75936.html

上一篇: 在phpstorm中识别没有扩展名的bash文件

下一篇: 与供应商目录的git工作流程