svn2git: Cannot setup tracking information

后端 未结 4 1774
被撕碎了的回忆
被撕碎了的回忆 2021-02-20 09:41

I am trying to migrate a SVN project to git with thel help of svn2git. When executing the command it exits with the following error:

Running command: git branch          


        
4条回答
  •  死守一世寂寞
    2021-02-20 10:28

    If you have a small number of branches and don't want to downgrade git, here's a way to workaround the issue. Run "git branch -r" to get a list of the branches. Then run the following for each branch (named svn/next_branch for example):

    $ git branch "next_branch" "remotes/svn/next_branch"
    

    The only difference is the "--track" option is removed.

    That was the fix applied for this Github Issue

提交回复
热议问题