Windows 版 Git 和 Github 桌面版有什么区别?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/33428099/
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-09 03:40:26  来源:igfitidea点击:

What is the difference between Git for Windows and Github Desktop?

git

提问by Metalurgia

As a programming neophyte, I have recently installed Github Desktop on Windows 10. However, upon using npm, I have discovered that some packages, like bower, require the user to install Git for Windows.

作为一名编程新手,我最近在 Windows 10 上安装了 Github Desktop。但是,在使用 npm 时,我发现一些包,如bower,需要用户安装Git for Windows

My questions are: What is the difference between using Github for Desktop's installation of git and using Git for Windows? Would it be necessary to uninstall my current git and Github Desktop installation in order to to adjust my git command-line tools? If so, how should I proceed?

我的问题是:使用 Github for Desktop 安装 git 和使用 Git for Windows 有什么区别?是否有必要卸载我当前的 git 和 Github Desktop 安装以调整我的 git 命令行工具?如果是这样,我应该如何进行?

采纳答案by VonC

Would it be necessary to uninstall my current git and Github Desktop installation in order to to adjust my git command-line tools?

是否有必要卸载我当前的 git 和 Github Desktop 安装以调整我的 git 命令行工具?

No both are completely independent.

没有两者是完全独立的。

You can safely install git-for-windows in addition of GitHub Desktop: both will ignore each others.

除了 GitHub Desktop 之外,您还可以安全地安装 git-for-windows:两者都会相互忽略。

回答by TT--

Git for Windowsincludes "Git BASH" (uses MINGW64) and "Git GUI" (git-gui). There is folder context menu (windows shell integration) to access these. Includes the latest release of git. It is not set up to access GitHub by default, but you can clone an existing repo from a source location.

Windows 版 Git包括“Git BASH”(使用 MINGW64)和“Git GUI”(git-gui)。有文件夹上下文菜单(windows shell 集成)来访问这些。包括最新版本的 git。默认情况下,它未设置为访问 GitHub,但您可以从源位置克隆现有存储库。

GitHub Desktop(formerly GitHub for Windows) is a more streamlined GUI. Uses PowerShell for git command line. The version of git it includes lags the latest release."Before you set up GitHub Desktop, you must already have a GitHub or GitHub Enterprise account." You log in with your account, your GitHub repositories are automatically detected.

GitHub Desktop以前称为 GitHub for Windows)是一个更加精简的 GUI。将 PowerShell 用于 git 命令行。它包含的 git 版本滞后于最新版本。“在您设置 GitHub Desktop 之前,您必须已经拥有一个 GitHub 或 GitHub Enterprise 帐户。”您使用您的帐户登录,系统会自动检测您的 GitHub 存储库。

回答by Victor Uriarte

GitHub for Windowsis a GUI interface for git. You can see a list of other GUI interfaces for githere. If you have Github for Windowsworking then you also have git for Windowsinstalled.

GitHub for Windows是一个 GUI 界面,用于git. 您可以git在此处查看其他 GUI 界面的列表。如果你有Github for Windows工作,那么你也已经git for Windows安装了。

回答by Zelgius

A clarification: GitHub Desktop does have the PowerShell as the defaultshell, but you can go into Options -> Default Shell and change the shell to 'Git Bash'.

澄清:GitHub Desktop 确实将 PowerShell 作为默认shell,但您可以进入 Options -> Default Shell 并将 shell 更改为“Git Bash”。

回答by Dwerg01

Please refer to the hyperlink and it should be obvious: Github Desktop is just a GUI for Git Git-scm GUI options for download

请参考超链接,应该很明显:Github Desktop is just a GUI for Git Git-scm GUI options for download

In my current Github Desktop I can navigate to Tools and Options>> About Github Desktop>> Release Notesand it shows supported git utilities These are older versions than are available on Git.

在我当前的 Github 桌面中,我可以导航到工具和选项>>关于 Github 桌面>>发行说明,它显示支持的 git 实用程序这些是比 Git 上可用的旧版本。