如何为Cygwin安装Git? [英] How to install Git for Cygwin?

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

问题描述

我在网上看到一些教程,但他们只显示如何在您安装Cygwin时将git安装到Cygwin上。我已经安装和定制了cygwin,所以我不想重复这一步。我如何安装git框架,以便可以将它用于github?

I see some tutorials online but they only show how to install git onto Cygwin AS you are installing Cygwin. I already have cygwin installed and customized so I'd prefer not to repeat that step. How do I install the git framework so I can use it for github?

谢谢。

推荐答案

在Cygwin的世界里,那里只是安装Cygwin的软件包 AS 而已。 Cygwin固有地设计了一个setup.exe,并在必要时运行多次。

In the world of Cygwin, there is really no such thing as only installing a package AS you are installing Cygwin. Cygwin was inherently designed with a setup.exe to be run multiple times when necessary.

Cygwin回购镜像包中有数千个包。从你所说的话来看,听起来好像你有一个全面的安装文件,然后计划永远不会安装任何额外的可用软件包或将来升级它们。这是Cygwin安装文件专门用于的目的。

There are thousands of packages available in the Cygwin repo mirrors. From what you are saying, it sounds as if you had a single go-round with the setup file and then planned to never install any additional available packages or upgrade them in the future. This is what the Cygwin setup file is specifically used for.

如果您当前没有在特定的Cygwin环境中安装Git,请再次运行setup.exe并选择包裹。它应该会自动检测您当前的安装目录和软件包目录以及之前选择的镜像。当您将Git包标记为安装时,它将自动下载所有依赖项,就像apt-get或其他任何* NIX包管理器一样。

If you don't currently have Git installed in your particular Cygwin environment, just run setup.exe again and select the package. It should automatically detect your current installation directory and package directory and previously-selected mirror. When you mark the Git package for installation, it will automatically download all dependencies, just like apt-get or any other *NIX package manager.

还有一个被放弃的项目称为 apt-cyg ,我仍然使用宗教信仰,特别是通过SSH远程系统,以避免GUI setup.exe。 apt-cyg 基本上是一个shell脚本,它将直接从命令行安装你的包, apt-get -style 。它需要 wget subversion ,但在设置30秒后,您只需运行 apt-cyg install git 。它也安装依赖项,就像GUI setup.exe一样。

There is also an abandoned project called apt-cyg that I still use religiously, especially on remote systems over SSH in order to avoid the GUI setup.exe. apt-cyg is basically a shell script that will install your package directly from the command line, apt-get-style. It requires wget and subversion, but after the 30 seconds it takes to setup, you'd just run apt-cyg install git. It also installs dependencies, just like the GUI setup.exe.

如果您通过Chocolatey包管理器安装Cygwin,也有类似的选择 - 您也可以安装 cyg-get (我相信这是所谓的)。语法有点不同 - 例如 cyg-get git 。我不太喜欢这种方法,因为它不同于apt-cyg,因为它实际上使用了setup.exe,并且只是自动化了这个过程,所以你不必点击任何东西。我不使用这种方法,因为我检查的最后一个,巧克力只支持32位Cygwin安装,这也是cyg-get包的功能。

There is also a similar alternative if you install Cygwin via Chocolatey package manager -- you can also install cyg-get (I believe it's called). The syntax is a bit different -- something like cyg-get git. I don't really like this method, because it differs from apt-cyg in the fact that it actually uses the setup.exe and just automates the process so that you don't have to click anything. I don't use this method, because the last I checked, Chocolatey only supported 32-bit Cygwin installs, which is also what the cyg-get package looks for.

apt-cyg 可能会被放弃,但它还没有令人失望,如果我知道我在找什么,我总是比运行setup.exe for package更喜欢它安装。

apt-cyg may be abandoned, but it has yet to disappoint, and if I know what I'm looking for, I always prefer it over running the setup.exe for package installation.

看起来项目已经恢复,并且正在积极开发中:https://github.com/transcode-open/apt-cyg

It looks like the project has been picked back up and is under active development again: https://github.com/transcode-open/apt-cyg

看来这个版本需要安装lynx。我不知道。我仍然只使用Google Code上的原始版本,在我检查的最后一个版本上工作得很好: https://code.google。 com / p / apt-cyg /

It appears this version requires lynx to install. I don't know. I still just use the original version on Google Code that worked just fine the last I checked: https://code.google.com/p/apt-cyg/

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

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