我如何从终端访问'GitHub for Mac'命令行工具? [英] How can I access the 'GitHub for Mac' command-line utility from the terminal?
问题描述
我最近安装了GitHub for Mac,来自GitHub的图形Git客户端,以及其菜单中的命令行实用程序,如下所示:
我收到命令行工具通知已经安装在 / usr / local / github
中,但是当我检查它时,它实际上已经放在 / usr / local / bin / github
- 详情如下:
当我尝试运行 git
时,我得到 -bash:git:command找不到
,所以我添加了 export PATH = / usr / local / bin:$ PATH
to 〜/ .profile
认为它可以解决问题,但它没有 - 所有这些似乎都不一样了,我现在可以通过键入 github $ c $从终端启动GitHub for Mac c>。
请有更多知识的人解释这里发生了什么?
要安装 git
命令行工具,请使用 Homebrew ( brew install git
)或 OS X的Git 安装程序。
I recently installed GitHub for Mac, the graphical Git client from GitHub, and also the command-line utility from its menu, shown below:
I was notified the command-line utility had been installed in /usr/local/github
, but when I checked it had actually been put in /usr/local/bin/github
- details shown below:
When I try to run git
I get -bash: git: command not found
, so I added export PATH=/usr/local/bin:$PATH
to ~/.profile
thinking it would solve the issue, but it hasn't - all that seems to be different is I can now start GitHub for Mac from the terminal by typing github
.
Please could someone with more knowledge explain what's happening here?
The "GitHub for Mac" command-line utility is just a tool for launching "GitHub for Mac" in the current directory.
To install the git
command line tool use either Homebrew (brew install git
) or the Git for OS X installer.
这篇关于我如何从终端访问'GitHub for Mac'命令行工具?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!