如何检查我是否有“svn”在我的 git 中安装桥接
我安装了“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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,您始终可以尝试运行 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
)是随端口一起安装的变体。如果您想强制重新安装,请运行(请注意传递给
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 thatgit-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(notice the
-f
flag passed to theport
program), although this shouldn't be necessary in this case, sincegit-core
(with thesvn
variant) is already installed.