2
git이 확장명이 .ex 인 모든 파일을 무시하도록 설정하고 있지만 이름이 subf 인 하위 폴더에만 있습니다. 남자 gitignore에서 나는 다음과 같은 읽기 : 나는 .ex
확장자 (저장소 기본 디렉토리에) 내 **/subf/*.ex
.gitignore
에 내 파일을 저장할 경우폴더에 확장명이있는 파일을 gitignore
Two consecutive asterisks ("**") in patterns matched against full pathname may have special meaning:
· A leading "**" followed by a slash means match in all directories. For example, "**/foo" matches file or directory "foo" anywhere, the same as pattern "foo". "**/foo/bar" matches file or
directory "bar" anywhere that is directly under directory "foo".
을 무시하지 않습니다! 내가 파일 .git/info/exclude
에 내 제외 규칙을 추가해야하는 this 스레드를 읽었습니다. 이것은 나를 위해 작동하는 것 같지만이게 내가 이해 한 방식이 아니기 때문에 나는 행복하지 않다. .gitignore
. 누군가가 왜 **/subf/*.ex
을 넣는 것이 .gitignore
에서 작동하지 않는지 이해할 수 있습니까? 고맙습니다!