如何获得Git 1.8在Cygwin? [英] How to get Git 1.8 in Cygwin?

查看:114
本文介绍了如何获得Git 1.8在Cygwin?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据 http://cygwin.com/packages/git/ 最新的Cygwin软件包是1.7.9-1。

According to http://cygwin.com/packages/git/ the latest available Cygwin package is 1.7.9-1.

我想更新git到至少1.8.0。

I would like to update git to at least 1.8.0.

我可以这样做吗?

推荐答案

要安装 git的1.8.0 你需要编译源代码。

To install git 1.8.0 you need to compile the source code.

您需要克隆Git仓库( git的克隆https://github.com/git/git.git),输入git的目录,改变当前的版本要1.8.0或其他版本( git的结帐v.1.8.0 ),然后键入以下命令:

You need to clone the git repository (git clone https://github.com/git/git.git), enter the git directory, change the current version to 1.8.0 or other version that you want (git checkout v.1.8.0) and type the following commands:

make configure
./configure --prefix=/usr/local
make
make install

这将在安装的git 的/ usr /本地目录。有关git安装的更多信息,如文档,您可以查看本地化在git存储库根目录中的 INSTALL 文件。

It will install git under /usr/local directory. For more information about git installation, like documentation, you can take a look in INSTALL file localized in git repository root.

这篇关于如何获得Git 1.8在Cygwin?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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