如何检查我是否有“svn”在我的 git 中安装桥接

发布于 2024-08-02 18:00:30 字数 440 浏览 5 评论 0原文

我安装了“git”,但不确定是否也安装了“svn”桥(“运行“git svn”的部分)。

所以我尝试执行 sudo port install git-core + Mac 上的 svn。 但我最终得到:

--->  Activating git-core @1.6.3.3_0+doc+svn
Error: Target org.macports.activate returned: Image error: Another version of this port   (git-core @1.6.3.3_0+bash_completion+doc+svn) is already active.
Error: Status 1 encountered during processing.

那么我如何检查我的 git 中是否安装了“svn”桥?

谢谢。

I have 'git' install, but I am not sure if I have the 'svn' bridge install as well ("the part to run 'git svn').

So I tried to do sudo port install git-core +svn on Mac.
But I end up getting:

--->  Activating git-core @1.6.3.3_0+doc+svn
Error: Target org.macports.activate returned: Image error: Another version of this port   (git-core @1.6.3.3_0+bash_completion+doc+svn) is already active.
Error: Status 1 encountered during processing.

So how can I check if I have 'svn' bridge installed in my git?

Thank you.

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

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

发布评论

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

评论(1

隐诗 2024-08-09 18:00:30

好吧,您始终可以尝试运行 git svn 并查看是否找到可执行文件。

但是,MacPorts 的输出显示您确实安装了 svn 变体,这意味着 git-svn 桥已经存在。您可以看出这一点,因为 MacPorts 报告已安装 git-core @1.6.3.3_0+bash_completion+doc+svn 。 git-core 是端口名称,@1.6.3.3_0 是版本,以及任何带有前导 + 符号(>+bash_completion+doc+svn)是随端口一起安装的变体。如果您想强制重新安装,请运行

$ sudo port -f install git-core +svn

(请注意传递给 port 程序的 -f 标志),尽管在这种情况下这不是必需的,因为 git-core (带有 svn 变体)已安装。

Well, you can always try running git svn and seeing if an executable is found.

However, your output from MacPorts shows that you do have the svn variant installed, which means the git-svn bridge is present. You can tell this because MacPorts reports that git-core @1.6.3.3_0+bash_completion+doc+svn is installed. git-core is the name of the port, @1.6.3.3_0 is the version, and anything with a leading + sign (+bash_completion, +doc, and +svn) are the variants installed with the port. If you want to force a reinstall, run

$ sudo port -f install git-core +svn

(notice the -f flag passed to the port program), although this shouldn't be necessary in this case, since git-core (with the svn variant) is already installed.

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