"git"标记命令需要命令行开发人员工具.您要安装吗 [英] The "git" command requires the command line developer tools. Would you like to install

查看:566
本文介绍了"git"标记命令需要命令行开发人员工具.您要安装吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对编码是个超级新手(实际上是想教自己一些Python),但是有一个问题困扰我,我似乎无法在线找到有关我的特殊情况的任何信息:著名的"The"git"命令需要命令行开发人员工具.是否要安装.",当我在终端上运行git时.

I'm super new to coding (actually trying to teach myself some Python), but there's a thing bugging me that I cannot seem to find any info online about my particular case: The famous "The "git" command requires the command line developer tools. Would you like to install.." when I run git on the terminal.

现在,由于我有一个非常基本的Macbook 12,因此我尝试使其尽可能轻巧,整洁,因此,我不想安装任何IDE或任何东西,我正在尝试使用Vim 7.3进行编码,但是在为了安装Vundle.vim来管理任何插件,我需要git,我可以在不安装Homebrew的情况下安装它吗?

Now, since I have a very basic Macbook 12, I try to keep it as lightweight and uncluttered as possible, so I don't want to install any IDE or anything, I'm practising coding with vim 7.3, but in order to install Vundle.vim to manage any plugins, I need git, is there I way I can install it without having to install Homebrew?

感谢您的投入!对不起,如果我没有正确表达自己的意思.所以基本上可以总结一下:

Thanks for any input! And sorry if I didn't express myself correctly. So basically to sum up:

–我需要git来安装Vundle.vim,(或者还有其他方法吗?).

– I need git to install Vundle.vim, (or is there any other way?).

–我在终端上运行git并得到一个我需要安装Xcode的错误,就像7GB的硬盘一样.

– I run git on terminal and get an error that I need to install Xcode, which is like 7GB heavy.

–我不想安装Xcode或Homebrew.

– I don't want to install Xcode or Homebrew.

谢谢!

推荐答案

在macOS上Git的三个主要来源.

There are three main sources for Git on macOS.

第一个是Apple,使用命令行开发人员工具.这些工具将安装一组标准的Unix开发工具,包括编译器和Git.虽然这被称为XCode开发工具,但它比完整的IDE XCode环境要小得多.

The first is Apple, using the command line developer tools. These tools install a standard set of Unix development tools, including a compiler and Git. While this is called the XCode development tools, it is significantly smaller than the full IDE XCode environment.

第二个是Homebrew,通常用于此目的.这将是最新的.这也需要命令行开发人员工具.

The second is Homebrew, which is commonly used for this purpose. It's going to be the most up to date. This also requires the command line developer tools.

第三个是 Git网站的下载页面.这是由第三方(而不是Git维护者)维护的,并不总是最新的,但是通常仅落后几个版本.

The third is the download page from the Git website. This is maintained by a third party, not the Git maintainers, and isn't always up to date, but it's usually only a few versions behind.

最后一个选项是从源代码进行编译,但这需要编译器,而编译器通常需要命令行开发人员工具.

The last option is to compile from source, but that requires a compiler, which generally requires the command line developer tools.

除非像Fink这样的其他软件包管理器,否则在macOS上没有其他知名的Git软件包来源.如果要使用Git,则必须选择以上选项之一.

Barring other package managers like Fink, there are no other reputable sources for Git packages on macOS. You'll have to pick one of the options above if you want to use Git.

这篇关于"git"标记命令需要命令行开发人员工具.您要安装吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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