1、在Linux下安装Git
在命令行中输入 git ,如果显示内容如下,说明还没有安装git。
使用下面的命令安装Git:
sudo apt-get install git
2、在Windows上安装Git:
在Git官网https://git-scm.com/downloads下载Git安装程序,完成安装。
安装完成后在开始菜单中打开“Git Bash”,弹出一个如下类似于命令行的窗口,说明安装成功
安装完成后在窗口中输入以下命令:
$ git config --global user.name "Your Name"
$ git config --global user.email "email@example.com"