I initialised a repo and added two remote branches to it. Then I tried to merge those: $ git branch -r | xargs git merge Can merge only exactly one commit into empty head It would be nice if this were possible, or the technical reason should be documented why it's not possible. Thanks,