Git ignore .git folder

后端 未结 5 1568
梦如初夏
梦如初夏 2021-02-04 09:41

I have a php project that uses composer for package management. One of the packages is another project belonging to the same repo. I have a need to commit my entire vendor folde

5条回答
  •  春和景丽
    2021-02-04 10:30

    For me this looks like a design error:

    If you load a second project from the same repository as dependency, this project should be moved to a different repository.

    And inside the vendor Directory place another .gitignore file with

    # Ignore Git here
    .git
    
    # But not these files...
    !.gitignore
    

提交回复
热议问题