安装git

linux

$ sudo apt install git

mac

$ git --version

如果没有安装过命令行开发者工具,将会提示你安装。

windows

git官网下载,https://git-scm.com/downloads
如果下载过慢,可以使用https://npm.taobao.org/mirrors/git-for-windows/,选择想要的git版本下载。
安装完成后,需要全局配置下用户名和邮箱:

$ git config --global user.name "Your Name"
$ git config --global user.email "email@example.com"
posted @ 2020-04-11 20:37  shellon  阅读(337)  评论(0编辑  收藏  举报