내가 작곡가를 사용하고, 개발을 위해 내가 공급 업체 디렉토리에있는 .git 폴더를 유지하려면, 그래서 차이점을 추적 할 수있는 등 그래서 내 프로젝트 구조는 다음과 같습니다어떻게하면 git이 .git 폴더를 vendor/아래에서 무시하게 할 수 있습니까?
projectroot/
.gitignore
file1
file2
vendor/
dir1/
module1/
.git/
module1file1
module1file2
...
dir2/
module2/
.git/
module2file1
...
내가 저지하려는
git,이 파일들 :
file1
file2
vendor/dir1/module1/module1file1
vendor/dir1/module1/module1file2
vendor/dir2/module2/module2file1
...
내 projectroot/.gitignore 파일은 어떻게해야합니까? the composer docs에서 나는
vendor/*.git
및
vendor/*/.git
하지만 두 경우 모두, 자식 1.8.3이 아직도 내가 아래 대신 파일을 커밋 할 서브 모듈로 vendor/dir1/module1
및 vendor/dir2/module2
를 저지하고자
그런 경우 .gitignore 구문을 사용해야합니까?
'vendor/** /. git'을 사용해보세요. – Sisir