Working with GIT, but export master branch to SVN - branch broken

浪子不回头ぞ 提交于 2019-12-13 16:35:54

问题


I'm working with GIT while developing project, but also I need to update SVN repository that was created for this reason with master branch once a week. So, would like to export GIT master branch to empty SVN repository.

First of all I need to tell GIT about SVN. I do

git svn init http://some/remote/svn/project/

Ok, I got lines in gitconfig

[svn-remote "svn"]
        url =  http://some/remote/svn/project/
        fetch = :refs/remotes/git-svn

Now I suppose I can use git svn functionality and I do

git svn log

but got

fatal: your current branch appears to be broken

What does it means? How to solve this problem? IS my understanding of doing such things correct?


回答1:


git svn log shows the log of the SVN commits that were imported into the current branch. But you didn't do this, so the branch is "broken" as it is not a branch that is connected to SVN.



来源:https://stackoverflow.com/questions/42156844/working-with-git-but-export-master-branch-to-svn-branch-broken

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!