架构

git_01
git架构

安装

参考链接

  • CentOS7
# yum安装
yum -y install git
  • Ubuntu
# 确保系统和apt包列表完全更新
sudo apt update -y
# 安装
sudo apt install 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
-------------------------------------------

参考

廖雪峰git教程
TortoiseGit下载

Q.E.D.


行走在天地间自由的灵魂