进入.git目录
cd .git
输入配置信息
git config user.name 'test'
git config user.email 'test@qq.com'
git config user.password 'test'
全局配置信息
git config --global user.name 'test'
git config --global user.email 'test@qq.com'
git config --global user.password 'test'
查看信息
$ cat config
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
[remote "origin"]
url = https://gitee.com/aaa/xxxx.git
fetch = +refs/heads/*:refs/remotes/origin/*
[user]
name = test
email = test@qq.com
password = test