无法在 Mac 中使用 git-svn

发布于 2024-07-17 08:51:33 字数 273 浏览 2 评论 0原文

我在 MacPorts 中通过 svn 安装了 Git,

sudo port install git-core +svn

我尝试使用 git-svn 但没有成功,

git svn egUrl

并且

git-svn egUrl

在安装 MacPorts 后如何在 Mac 中使用 Git-svn

I installed Git with svn in MacPorts by

sudo port install git-core +svn

I have tried to use git-svn unsuccessfully by

git svn egUrl

and

git-svn egUrl

How can you use Git-svn in Mac after MacPorts' installation?

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

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

发布评论

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

评论(2

简单 2024-07-24 08:51:33

您必须首先将 Svn 存储库克隆到 git 中。 就我而言,我使用以下内容(我的 git-core 是 v1.6.x):

git svn clone https://myrepos.com/project -T trunk -b Branchs/*/* --prefix= svn/

克隆可能需要一段时间,但一旦完成,您将能够使用 git 命令与新的 git 存储库进行交互,然后使用 git svn rebase 拉取/提交到 svn和 git svn dcommit 分别。

这有点高层次,没有提供太多细节,但希望它至少能让您入门。

You have to start by cloning a Svn repository into git. In my case, I use the following (my git-core is v1.6.x):

git svn clone https://myrepos.com/project -T trunk -b branches/*/* --prefix=svn/

The cloning may take a while, but once complete, you'll be able to interact with your new git repository using git commands and then pull/commit to svn using git svn rebase and git svn dcommit, respectively.

This is a bit high level and doesn't offer much detail, but hopefully it will at least get you started.

雨落星ぅ辰 2024-07-24 08:51:33

在调用 git svn init 之前,不要忘记 git init 您的目录。

Don’t forget to git init your directory before calling git svn init.

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