커밋하고 변경 사항을 푸시하면 내 MP4 및 비디오 파일이 변경됩니다. MAC 및 WIN에서이 작업을 시도했지만 두 작업 모두 동일합니다. 원격 저장소가 BitBucked이지만 문제가 로컬 저장소에 있습니다.커밋 변경 비디오 파일
예를 들어 약 4MB의 파일을 커밋 할 때 저장소의 파일 크기는 원본 크기보다 약 60 바이트 작습니다. 나는 그것을 들여다 보았고 약간의 0D가 빠져있다.
이것은 CRLF, LF 변환과 비슷하지만,
core.autocrlf
매개 변수로 실험 한 후에 변경된 사항은 없습니다.
일부 구성이 누락 되었습니까? 원본 : : https://drive.google.com/open?id=0B-30m3j9bgwrcUN0OEdiT2lid28
내가 BB에서 다운로드 할 때 : https://drive.google.com/open?id=0B-30m3j9bgwrOXN0NVBLTzhHTGM
여기입니다 .gitattributes
# All text files should have the "lf" (Unix) line endings
* text eol=lf
# Explicitly declare text files you want to always be normalized and converted
# to native line endings on checkout.
*.java text
*.js text
*.css text
*.html text
# Denote all files that are truly binary and should not be modified.
*.png binary
*.jpg binary
*.jar binary
*.pdf binary
*.eot binary
*.ttf binary
*.gzip binary
*.gz binary
*.ai binary
*.eps binary
*.swf binary
이미 false로 설정되었습니다. 나는 repo를 다시 복제했지만 여전히 문제가 있습니다. – user3842673
그래서 그 repo에서'git config -l | grep autocrlf'가 false로 표시됩니까? 'core.eol' 지시자를 가진'.gitattributes' 파일이 있습니까? – VonC
git config -l | grep autocrlf core.autocrlf = false 방금 예제 파일을 추가했습니다. – user3842673