架构
安装
- CentOS7
# yum安装
yum -y install git
- Ubuntu
# 确保系统和apt包列表完全更新
sudo apt update -y
# 安装
sudo apt install git
- windows
git官网
配置
- 命令行配置用户名、邮箱、密码
git config --global user.name "XiangyunKong"
git config --global user.email "xiangyun.kong@iraytek.com"
git config --global user.password "iray123"
git config --global credential.helper store
- 配置文件配置用户名、邮箱、密码
vim ~/.gitconfig
-------------------------------------------
[credential]
helper = store
[user]
name = XiangyunKong
email = xiangyun.kong@iraytek.com
password = iray123
-------------------------------------------
参考
Q.E.D.