warning: refname 'xxx' is ambiguous when using git-svn

后端 未结 4 1170
故里飘歌
故里飘歌 2020-12-28 11:40

I am using git as a frontend to Subversion (via git svn).

So, for every svn trunk/branch I have remote branch in git named \"remotes/xxx\". For example \"remotes/tru

4条回答
  •  误落风尘
    2020-12-28 12:18

    To avoid the conflict messages, when referring to local branches, prefix them with heads/

    for example, the conflicting branch topic

    $ git diff topic remotes/topic
    warning: reframe 'topic' is ambiguous.
    ...
    

    becomes

    $ git diff heads/topic remotes/topic
    ...
    

提交回复
热议问题