git配置用户和邮箱

1. 查看git用户配置

git config user.name

2. 查看git邮箱配置

git config user.email

3. 配置git用户

git config --global user.name "Your name"

4. 配置git邮箱

git config --global user.email "Your eamil"

PS:如果这些东西不配置好的话,你的代码提交,在github上就会显示是别人的提交!!!

 

posted @ 2019-10-24 09:41  牛郎  阅读(7481)  评论(0编辑  收藏  举报