安装Github for Mac后,从命令行使用git [英] Using git from the command line after installing Github for Mac

查看:215
本文介绍了安装Github for Mac后,从命令行使用git的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为Mac安装了Github,它工作正常,但我无法从终端运行git命令。我有另一个需要安装的git吗?或者我必须在Github for Mac中启用一些选项?

从2013年5月开始(从GitHub for Mac安装Git ),您不必安装另一个git distribution:所有内容都包含在内。


现在,您可以轻松安装Git以便在命令行上使用,无需下载任何单独的软件包。

当我们更新Mac版GitHub附带的Git版本时,您会自动获得更改 - 无需您的工作!



您可能会注意到首选项窗口发生了一些变化。

在新重命名的高级选项卡上,只需单击安装命令行工具



系统会提示您输入管理员密码,以便将Git安装到 / usr / local / bin ,然后你sh我们很快就会发现它成功了:


I installed Github for Mac, which works fine, but I can't run git commands from Terminal. Do I have another git that needs to be installed? Or do I have to enable some optio within Github for Mac?

解决方案

Starting May 2013 ("Installing Git from GitHub for Mac"), you don't have to install another git distribution: everything is included.

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:

这篇关于安装Github for Mac后,从命令行使用git的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆