使用Cygwin或msysGit版本的Git,或两者?

编程入门 行业动态 更新时间:2024-10-25 06:25:01
本文介绍了使用Cygwin或msysGit版本的Git,或两者?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在运行Windows 7,我只是第一次安装Cygwin今天,所以我一直在玩它。我现在想开始使用Git。

I am running Windows 7, I just installed Cygwin for the first time today so I have been playing around with it. I am now wanting to start using Git as well.

从我已经阅读msysGit将允许你使用一个GUI,它还增加了一个文件夹/ file 添加到Git GUI 和添加到GIT Bash 上下文菜单选项。

From what I have read msysGit will allow you to use a GUI, and it also adds a right click on a folder/file Add to Git GUI and Add to GIT Bash context menu options.

同时,虽然我想使用命令行来做一些Git东西,但我认为作为一个Git初学者,将是很好的上下文菜单和一个GUI。

At the same time though I would like to use the command line to do some Git stuff but I think as a Git beginner it would be nice to have the context menus and a GUI.

所以我有点卡住了。几个问题...

So I am kind of stuck. Couple of questions...

  • 如果我使用msysGit安装Git,还可以使用Cygwin运行Git的命令行工具吗?

  • If I install Git with msysGit can I still run the command line stuff for Git with Cygwin?

    一本书说你可以安装Cygwin和msysGit it版本,如果是这样,他们都在同一个文件/它喜欢每个文件有2个单独的Git仓?

    One book said that you can install both Cygwin and msysGit it versions, if that is the case, do they both work on the same files/repo or is it like having 2 separate Git repos on every file? If that is the case then it seems like overkill.

    我也看到msysGit有一个可移植的版本。如果我使用这个便携式版本,这是否意味着Git仓库存储在USB便携式设备或只是程序?如果是Git程序和代码仓库存储可移植的话会很酷。

    I also saw that msysGit has a portable version. If I were to use this portable version, does that mean that the Git repo is stored on the USB portable device or just the program? It would be cool if it is the Git program and the code repo stored portable.

    推荐答案

    1)如果你不使用cygwin的其他任何东西,你想使用Git,去msysgit。它带来良好的Git集成到Windows和几乎所有的GUI工具 - Git Extensions,TortoiseGit和我知道的其他,都依赖于msysgit。还有msysgit,你可以使用git从cmd,powershell等,这是不可能的,如果你只有cygwin git。

    1) If you are not using cygwin for anything else, and you want to use Git, go with msysgit. It brings in good Git integration to Windows and almost all GUI tools - Git Extensions, TortoiseGit and others that I know of, are dependent on msysgit. Also with msysgit, you can use git from cmd, powershell etc. which is not possible if you only have cygwin git.

    msysgit自带的bash,你可以使用对于命令行,你不需要cygwin(再一次,从你不使用cygwin的其他事情)。几乎所有的git功能都可以在msysgit中,除了一些Windows特定的更改(和性能),你会发现一切都工作在一个类似的方式git on * nix。 cygwin不会像msysgit一样表现,并且在* nix上更少的本地git。

    msysgit comes with it's own bash and you can use that for command line and you won't need cygwin ( again, from point of you not using cygwin for other things). Almost all git features are available in msysgit and except for some Windows specific changes ( and performance), you will find that everything works in a comparable way to git on *nix. cygwin will not be as performant as msysgit and much less native git on *nix.

    2)可能有它们,你不需要单独的repos 。他们可以和平共处。

    2) And it is possible to have them both and you don't need separate repos. They can co-exist peacefully.

    3)Git repos是轻量级的,因为它们只涉及文件系统。没有可移植git repos的概念,因为它们是有效可移植的。 Msysgit portable是为了允许你在没有安装msysgit的系统上操作Git repos。

    3) Git repos are lightweight as they only involve filesystem. There is no concept of portable git repos, as they are effectively portable. Msysgit portable is meant to allow you to operate on Git repos on a system without installing msysgit.

  • 更多推荐

    使用Cygwin或msysGit版本的Git,或两者?

    本文发布于:2023-10-21 17:22:59,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1514864.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:版本   Cygwin   msysGit   Git

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!