如何将 git 存储库同步到 subversion?
我们使用多个托管在 github 上的开源库。我希望能够克隆 git 存储库,并将它们推送到我们本地的 subversion 存储库中,这样我就可以在内部为它们启动 CI 构建。
如何在从 github 克隆的 git 存储库中设置与 svn 服务器的连接?我了解如何从 subversion 中克隆..但是如何将新项目推入其中?
We use several open source libraries that are hosted on github. I want to be able to clone the git repositories and basically push them into our local subversion repository so I can start a CI build internally for them.
How do I set up the connection to the svn server in a git repository that I cloned from github? I understand how to clone out of subversion.. but how do I push a new project into it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不幸的是,你必须安装 svn 和 git。
git svn dcommit
(将分支中的新提交发送到 svn)git-svn 桥不涵盖所有边缘情况,例如将 git 存储库推送到 svn 存储库或添加 svn 忽略属性,所以有时我发现除了 git-svn 之外,你最终还必须直接使用 svn repo 副本。
You'll have to install svn as well as git, unfortunately.
git svn dcommit
(to send the new commits in the branch into svn)The git-svn bridge doesn't cover all the edge cases, like pushing a git repo to an svn one or adding svn ignore properties, so sometimes you end up having to work with a svn repo copy directly in addition to the git-svn, I've found.