我可以成功 git subtree pull ,但 git subtree push 在我的 mac 书上失败,而在其他 Mac 书上成功。
这是我的命令。
git subtree push --prefix=xxx ssh://xxxx/xxxx.git xxmaster
它只在我的 Mac 书上失败。
/Applications/Xcode.app/Contents/Developer/usr/libexec/git-core/git-subtree: line 751: 50048 Done(141) eval "$grl"
50049 Segmentation fault: 11 | while read rev parents; do
process_split_commit "$rev" "$parents" 0;
done
最佳答案
就我而言,将 git 客户端降级到版本 2.19.2
对我有帮助(我有 2.26.1
)。
在这里您可以找到二进制文件的链接:https://git-scm.com/download/mac .
我认为问题与此线程有关:https://lore.kernel.org/git/[email protected]/t/
关于git子树推送失败 "/Applications/Xcode.app/Contents/Developer/usr/libexec/git-core/git-subtree",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57033081/