How can I access the 'GitHub for Mac' command-line utility from the terminal?

[亡魂溺海] 提交于 2019-12-03 15:44:13

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.

From May 2013, you now have a different option:

See "Installing Git from GitHub for Mac"

you can now easily install Git for use on the command line, without needing to download any separate packages.
And whenever we update the version of Git included with GitHub for Mac, you'll get the changes automatically – no work required on your part!

you may notice some changes to the Preferences window.
On the newly renamed "Advanced" tab, simply click "Install Command Line Tools".

You'll be prompted for an administrator password so that Git can be installed into /usr/local/bin, and then you should very shortly see that it succeeded:

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!