使用GIT,但将master分支导出到SVN-分支已损坏 [英] Working with GIT, but export master branch to SVN - branch broken

查看:162
本文介绍了使用GIT,但将master分支导出到SVN-分支已损坏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在开发项目时正在与GIT合作,但是我还需要每周一次通过master分支更新为此原因而创建的SVN存储库.因此,要将GIT主分支导出到空的SVN存储库.

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.

首先,我需要向GIT讲述SVN.我会

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

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

好吧,我在gitconfig中找到了行

Ok, I got lines in gitconfig

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

现在我想我可以使用git svn功能了,我可以这样做

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

git svn log

但是得到了

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?

推荐答案

git svn log显示导入到当前分支的SVN提交的日志.但是您没有执行此操作,因此分支不是分支",因为它不是连接到SVN的分支.

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.

这篇关于使用GIT,但将master分支导出到SVN-分支已损坏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆