당신이 사용할 수있는 내장 binary
병합 드라이버 :
binary: Keep the version from your branch in the work tree, but
leave the path in the conflicted state for the user to sort out.
예를 줄 .gitattributes :
는, 라인 엔딩을 추가하지 diff를하지 않도록하고, 계속 자식을 알려줍니다
*.bin -crlf -diff merge=binary
로컬 버전
http://git-scm.com/docs/gitattributes
그 단지 당신의 작업 복사본 ...
또 다른 방법은 사용자 정의 병합 드라이버를 사용하는이 보존 : 항상 로컬 버전 덮어 쓰기해야하는 파일의 목록에 대해 충돌하는 파일을 확인할 수 있습니다
[merge "binmerge"]
name = my binary merge script
driver = binmerge.sh %O %A %B
.
*.bin -crlf -diff merge=binmerge
binmerge.s을 ..
은과 같이,이 .gitattributes에서에 사용해야 어떤 경로 지정 후, 병합 드라이버를 사용하는 설정에서 정의하는 h는 병합 처리를 위해 호출됩니다. 그것은 본질적으로 단지 다음과 같이 할 수 있습니다 :
#!/bin/sh
echo "Performing merge of binary object ($1, $2, $3)"
touch $2
exit 0
http : // stackoverflow도 참조하십시오.com/questions/1910444/git-merge-s-theirs-needed-but-i-know-itnt-exist/1910479 # 1910479 – VonC