Git安装

Git安装

在linux系统上安装

(1)先检测是否本机上有Git: 在终端上输入Git查看
如果没有他会提示:
The program ‘git’ is currently not installed. You can install it by typing:
sudo apt-get install git
并且友好的告诉你怎么安装:安装指令 sudo apt-get install git

在windows系统上安装

在Windows上使用Git,可以从Git官网直接下载安装程序,(网速慢的同学请移步国内镜像),然后按默认选项安装即可。

安装完成后,右键鼠标能看到以下图片就说明是安装成功的
Git安装

安装完成后,还需要最后一步设置,在Git Bash命令行输入:

$ git config --global user.name “username”
$ git config --global user.email "[email protected]"

windows下就安装完成了