svn2git: Cannot setup tracking information

后端 未结 4 1785
被撕碎了的回忆
被撕碎了的回忆 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:33

    I would like to add a quick and dirty solution to this without changing code!

    Every time you get the error, just manually change branch and continue your svn2git command.

    so to go through the workflow:

    Running the command

    svn2git ....
    

    Got the error

    Running command: git branch --track "0.0.9" "remotes/svn/0.0.9"
    fatal: Cannot setup tracking information; starting point 'remotes/svn/0.0.9' is not a branch. 
    

    Manually change branch (Copy the Running command: line and removing --track)

    branch "0.0.9" "remotes/svn/0.0.9"
    

    Continuing with svn2git

    svn2git ...
    

    note ... after the svn2git above is whatever your svn2git command is

提交回复
热议问题