推送现有的svn仓库git [英] Pushing an existing svn repository to git
问题描述
我正在使用SVN,而现在我不打算迁移到Git。我想尝试AppHarbor,但目前您必须使用Git将代码部署到AppHarbor。
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.
我想继续使用SVN,但将其推送到AppHarbor的git存储库时常。有没有一种简单的方法来实现这一点?
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?
推荐答案
您可以使用以下命令创建SVN仓库的git克隆:
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
..在由 git svn clone
创建的目录中。然后,您可以从Subversion存储库的git镜像推送到AppHarbor。
... in the directory created by the git svn clone
. You can then push from that git mirror of your Subversion repository to AppHarbor.
这篇关于推送现有的svn仓库git的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!