Git 常用操作(三) 作者及邮箱相关

来源:互联网 发布:电子菜谱制作软件 编辑:程序博客网 时间:2024/05/16 05:12

 1. 查看作者名字

git config user.name


2. 修改作者名字

 git config user.name xxx


3. 上面第二条设置的是当前项目的名字,

还可以设置global 项目名字

git config --global user.name "xxx"


4.查看邮箱名字

git config user.email


5.修改邮箱名字

git config user.email "xxx"


6.全局修改邮箱名字

git config --global user.email "xxx"


7. 如果想要同时查看更多config信息,

可以用这个命令

git config --list

 





原创粉丝点击