当我使用jgit
完成git pull
如下:
git.pull().call();
它会导致异常
Caused by: java.io.IOException: Multiple merge bases for:
0479d50e9bcb14f197e1f703cb9d20ce402e38be
e52e86d1977a42c934a939f04d63deb8eaeb38bf found:
518a66929b4480a5bd25defc5fe643937fc16cfa
513273d6f0327f41c914c7cd5573adeb7d396d8f
at org.eclipse.jgit.merge.Merger.getBaseCommit(Merger.java:217)
at org.eclipse.jgit.merge.Merger.mergeBase(Merger.java:182)
at org.eclipse.jgit.merge.ThreeWayMerger.mergeBase(ThreeWayMerger.java:121)
at org.eclipse.jgit.merge.ResolveMerger.mergeImpl(ResolveMerger.java:187)
at org.eclipse.jgit.merge.Merger.merge(Merger.java:156)
at org.eclipse.jgit.merge.ThreeWayMerger.merge(ThreeWayMerger.java:108)
at org.eclipse.jgit.api.MergeCommand.call(MergeCommand.java:208)
我想知道为什么会显示mutiple merge bases
?
我想知道如何仅使用Jgit
而不是命令行 git 来修复错误?