将现有的 svn 存储库推送到 git

发布于 2024-12-14 16:14:10 字数 143 浏览 4 评论 0原文

我正在使用 SVN,暂时不打算迁移到 Git。我想尝试 AppHarbor,但目前您必须使用 Git 将代码部署到 AppHarbor。

我想继续使用 SVN,但时不时地推送到 AppHarbor 的 git 存储库。有没有一种简单的方法可以实现这一目标?

I'm using SVN and I'm not planning to migrate to Git for now. I'd like to try out AppHarbor but currently you must use Git to deploy code to AppHarbor.

I'd like to continue using SVN but push to AppHarbor's git repository from time to time. Is there an easy way to achieve this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

寻梦旅人 2024-12-21 16:14:12

您可以使用以下命令创建 SVN 存储库的 git 克隆:

git svn clone --stdlayout <URL-OF-YOUR-SVN-REPOSITORY>

定期运行 ... 来保持最新状态

git svn rebase

... 并通过在 git svn 克隆创建的目录中 。然后,您可以从 Subversion 存储库的 git 镜像推送到 AppHarbor。

You can create a git clone of your SVN repository with:

git svn clone --stdlayout <URL-OF-YOUR-SVN-REPOSITORY>

... and keep that up to date by periodically running:

git svn rebase

... in the directory created by the git svn clone. You can then push from that git mirror of your Subversion repository to AppHarbor.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文