如何在 ubuntu 上安装 git bash?

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

How to install git bash on ubuntu?

gitubuntu

提问by minhaz

I am new to Ubuntu. Previously I was on Windows and was using git bashfor gitcommands. But I have decided to use Ubuntu and I installed gitbut I am not sure whether it is necessary to install git bashon Ubuntu? And, if it is necessary, how should I install it?

我是 Ubuntu 的新手。以前我在 Windows 上使用git bashforgit命令。但是我决定使用 Ubuntu 并且我安装了git但是我不确定是否有必要git bash在 Ubuntu上安装?而且,如果有必要,我应该如何安装它?

回答by Cedric Reichenbach

If it's not installed yet:

如果尚未安装:

sudo apt-get install git-core

Check installation:

检查安装:

git --version

When it's installed, you can use it inside your existing bash in ubuntu.

安装后,您可以在 ubuntu 中现有的 bash 中使用它。