2.Git基本配置

 用户名和邮箱地址是本地git客户端的一个变量 . 用户每次提交代码都会记录用户名和邮箱 .

设置git的用户和邮箱
git config [--local | --global | --system] user.name 'Your name'   注意这里user.name后边是空格,不是等号=。
git config [--local | --global | --system] user.email 'Your email'

## 查看配置

git config --list [--local | --global | --system]

## 区别

local:区域为本仓库
global: 当前用户的所有仓库
system: 本系统的所有用户

猜你喜欢

转载自www.cnblogs.com/asea123/p/10231943.html
今日推荐