git 设置全局用户名和邮箱

如果不设置全局用户名和邮箱提交代码时会有这样的提示
如果不设置全局用户名和邮箱提交代码时会有这样的提示
一、设置

git config --global user.name "name"
git config --global user.email "[email protected]"

二、查看

 git config --global user.name
 git config --global user.email

如果设置成功用查看命令就会显示设置的用户名或邮箱

发布了77 篇原创文章 · 获赞 7 · 访问量 9122

猜你喜欢

转载自blog.csdn.net/Misnice/article/details/103653112