如何在 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
How to install git bash on ubuntu?
提问by minhaz
I am new to Ubuntu. Previously I was on Windows and was using git bash
for git
commands.
But I have decided to use Ubuntu and I installed git
but I am not sure whether it is necessary to install git bash
on Ubuntu? And, if it is necessary, how should I install it?
我是 Ubuntu 的新手。以前我在 Windows 上使用git bash
forgit
命令。但是我决定使用 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 中使用它。