一般我们在代码进行 上传/下拉 的时候 都需要修改一下git的全局信息 来保证我们在拉去代码的时候不会出错。 甚至不会报一些身份信息错误等报错。
因此我提供了一下修改信息的方式和指令 在 "git Bash Here" 上面直接运行 便可以查看和修改个人信息
主要提供一下信息,来进行操作。
# 显示所有信息
git config --list
# 查看用户名
git config user.name
# 查看密码
git config user.password
#查看邮箱
git config user.email
# 修改去全局信息
#名称
git config --global user.name "your name"
#邮箱(我目前只用过 qq和163邮箱)
git config --global user.email "your email"
#密码
git config --global user.password "your password"