在Mac中克隆打开Gitbox而不是Github for mac

时间:2012-02-01 18:04:22

标签: github github-for-mac gitbox

不确定是否有人经历过这种情况,但自从我从Mac AppStore下载Gitbox并点击github.com上的“克隆在Mac”后,它就会启动Gitbox而不是Github for mac。当我卸载Gitbox时,点击“克隆在Mac”启动Github for mac。知道是什么原因引起的吗?如何/在哪里建立关联,有没有办法改变它?

更新: 在我对Marvin的评论中添加屏幕截图以引用它们

Gitbox Plist Screenshot

Github Plist Screenshot

1 个答案:

答案 0 :(得分:0)

单击Clone in Mac链接时启动Gitbox应用程序的原因是因为Clone in Mac链接(在Github上)使用github-mac:// URL类型。在您的情况下,Gitbox应用程序注册自己以处理github-mac:// URL类型大概是,因为您在安装Github for Mac后安装了它。

您可以通过打开各自的Info.plist文件并搜索CFBundleURLTypes密钥来验证每个应用程序使用的URL类型。 .plist文件的位置为:

/Applications/GitHub.app/Contents/Info.plist
/Applications/Gitbox.app/Contents/Info.plist

请注意,Gitbox的文件路径可能已关闭,因为我实际上没有安装它,因此无法验证。另请注意,如果您遇到二进制格式的.plist文件,请使用以下命令根据需要进行转换:

从二进制到XML:

plutil -convert xml1 some_file.plist

从XML到二进制:

plutil -convert binary1 some_other_file.plist