Git GUI、Git Bash、Git CMD 的区别

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/45034549/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-08 22:34:40  来源:igfitidea点击:

Difference between Git GUI, Git Bash, Git CMD

gitbashcmd

提问by Rim

What is the difference between Git GUI, Git Bashand Git CMD? I'm a beginner, and for doing my installations I usually find myself using both git bash and git CMD

Git GUIGit BashGit CMD之间有什么区别?我是初学者,在进行安装时,我通常会同时使用 git bash 和 git CMD

回答by Winter

Git CMD is just like regular Windows command prompt with the gitcommand. It lets you use all of Git features through command line. Useful if you are already familiar with Windows cmd and you only work on Windows.

Git CMD 就像带有git命令的常规 Windows 命令提示符。它允许您通过命令行使用所有 Git 功能。如果您已经熟悉 Windows cmd 并且您只在 Windows 上工作,则很有用。

Git Bash emulates a bashenvironment on windows. It lets you use all git features in command line plus most of standard unix commands. Useful if you are used to Linux and want to keep the same habits.

Git Bash在 Windows 上模拟bash环境。它允许您在命令行中使用所有 git 功能以及大多数标准 unix 命令。如果您习惯了 Linux 并希望保持相同的习惯,则很有用。

Git GUI is a Graphical User Interface letting you use Git without touching command line. It is an alternative among other Git clients. Since Git GUI is very minimal, you could also look at other alternativesif GUIs interest you.

Git的图形用户界面是一个raphical üSER覆盖整个院落,让你使用git无需触摸的命令行。它是其他 Git 客户端的替代方案。由于 Git GUI 非常小,如果您对 GUI 感兴趣,您还可以查看其他替代方案

It is up to you to decide which you want to use. As many others, I recommend you to learn Git with command line before switching to a graphical interface. If you don't know which to choose between Git Bash and Git CMD, I'd go for Git Bash since bash is a really useful tool to learn.

由您决定要使用哪个。与其他许多人一样,我建议您在切换到图形界面之前使用命令行学习 Git。如果您不知道在 Git Bash 和 Git CMD 之间选择哪个,我会选择 Git Bash,因为 bash 是一个非常有用的学习工具。

回答by GeneGi

What is difference between GIT GUI, GIT BASH and GIT CMD?

GIT GUI、GIT BASH 和 GIT CMD 之间有什么区别?

Someone has asked it before in Quora.

之前在知乎上有人问过。

Git Bash:

Bash is a Unix shell and command language, and is the default shell on Linux (Ubuntu etc.) and OS X. In laymen terms, the git which runs on the terminal of any Linux device is known as git bash.

Git CMD:

(Command Line prompt) is the command-line interpreter on Windows operating systems. Sort of an equivalent to the bad-ass terminal in Linux, when you install git on windows and you are used to using command line, one uses cmd to run git commands.

There is not at all any difference when it comes to git commands when you use either of the above. I would prefer the terminal over cmd any day, but if you like Windows for conventional reasons, I have used Cygwin to give me the terminal like feeling on Windows.

Git GUI:

Essentially aimed at people who don't like the coding on black screens a.k.a the command line. It provides a Graphical user interface to run the git commands you like for eg. if you are commiting some changes from your local repository to the staging queue, you would just have to click a button to commit the changes whereas the git command is 'git commit -m ""

git 重击

Bash 是一种 Unix shell 和命令语言,是 Linux(Ubuntu 等)和 OS X 上的默认 shell。通俗地说,在任何 Linux 设备的终端上运行的 git 被称为 git bash。

git命令

(命令行提示符)是 Windows 操作系统上的命令行解释器。有点类似于Linux中的bad-ass终端,当你在windows上安装git并且习惯使用命令行时,一个人使用cmd来运行git命令。

当您使用上述任一命令时,git 命令没有任何区别。我更喜欢终端而不是 cmd,但是如果您出于传统原因喜欢 Windows,我已经使用 Cygwin 为我提供了像 Windows 上的终端一样的感觉。

吉特图形用户界面

主要针对不喜欢在黑屏上进行编码的人,也就是命令行。它提供了一个图形用户界面来运行你喜欢的 git 命令,例如。如果您将一些更改从本地存储库提交到暂存队列,则只需单击一个按钮即可提交更改,而 git 命令是 'git commit -m ""

I think it is clear enough for your question.

我认为你的问题已经足够清楚了。

回答by champion-runner

Git is a version control system Version Control System

Git 是一个版本控制系统Version Control System

Git Bash- It's a Bash based Terminal, [Bash is a Unix based Terminal] which simply means that user can directly use Unixcommands in that Bash terminal

Git Bash- 这是一个基于 Bash 的终端,[ Bash 是一个基于 Unix 的终端] 这只是意味着用户可以直接Unix在该 Bash 终端中使用命令

Git GUI- Used for on system as an IDE if you don't have an IDE or want to work in Github like environment but offline, then Git GUI is useful. If you are using VScode or Sublime editors they now have added a plugin for Gitcommands. So it is also an option for you to rather than installing the Git GUI

Git GUI- 用于在系统上作为 IDE,如果您没有 IDE 或想在类似 Github 的环境中但脱机工作,那么 Git GUI 很有用。如果您使用的是 VScode 或 Sublime 编辑器,他们现在已经为Git命令添加了一个插件。所以它也是你的一个选择,而不是安装 Git GUI

Git CMDdeprecated- Mainly used by Windows users because it also has some Git command features user can use directly, which is an issue while using a Windows Command Prompt[CMD].

Git CMDdeprecated- 主要由 Windows 用户使用,因为它还有一些用户可以直接使用的 Git 命令功能,这是使用 Windows命令提示符[CMD] 时的一个问题。

Best Application of Git Version Control System is Github

Git 版本控制系统的最佳应用是Github

Guide to Github

Github 指南

About ----- Bash

关于----- Bash

Git GUI

图形用户界面

Git Bash

git bash

Git CMD

git命令