git 配置用户名和邮箱以及一台电脑github和gitlab同时使用

引用自:

https://blog.csdn.net/xingbaozhen1210/article/details/80342212

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

2 . 设置
2.1 设置用户名
git config --global user.name "username"
2.2 设置邮箱 (没有双引号)
git config --global user.email [email protected] 
3 . 查看用户名和密码
git config user.name
git config user.email
4 . 查看其他配置信息(git设置列表)
git config --list   

参考地址:

Mac Git 安装和配置 - 阿豪的girl - 博客园

同一台电脑同时使用gitHub和gitLab - 给你一页白纸 - 博客园

你可能感兴趣的:(git,git)