如何将Git存储库提交到空存储库SVN服务器? [英] How to commit a Git repo to an empty repo SVN server?

查看:117
本文介绍了如何将Git存储库提交到空存储库SVN服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在服务器上设置了一个空的svn,并且一直在本地进行提交.现在,我希望将我的仓库提交到svn服务器.为此,我尝试了:

I have setup an empty svn on a server and I have been working on locally making commits along the way. Now I wish to commit my repo to an svn server. For this I tried:

git-svn checkout http://remote.svn.server.com
git-svn dcommit

Git抱怨:

Use of uninitialized value in concatenation (.) or string at /usr/bin/git-svn line 411.
Committing to  ...
Unable to determine upstream SVN information from HEAD history

由于我首先在本地计算机上启动,并且在线存储库为空,所以找不到有关如何进行此工作的任何信息.

Since I started on my local computer first, and the repo online is empty, I can't find any info on how to make this work.

推荐答案

这就是我要做的事情:

git-svn clone http://remote.svn.server.com otherdir

然后在其他目录中,从先前的目录本地提取更改.然后,您应该有一个通过git-svn连接"的git repo,并且应该能够在其上使用dcommit.

Then in other dir pull the changes locally from your previous dir. Then you should have a git repo that is "connected" via git-svn and you should be able to use dcommit on it.

可能也是有用的读物​​.

This might also be a useful read.

这篇关于如何将Git存储库提交到空存储库SVN服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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