I am trying to merge two branches on a bare repository and can\'t use MergeCommand since it requires checking out a branch. Is there a way I could use a low level JGit API t