windows系统下git配置用户名和邮箱

找到你的.git的目录下,右键空白位置找到“Git Bash”呼出命令行:

设置用户名

命令格式:git config user.name "name"

例:git config user.name "hello"

验证方式

 git config user.name ---验证用户名

设置邮箱地址

命令格式: git config user.email 邮箱地址

例:git config user.email hello.qq.com

验证邮箱

git config user.email

在../.git/config文件中就会多出:

[user]

name = hello

email = hello@qq.com

修改git用户名和邮箱

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

git config --global user.email "your email"

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

友情链接更多精彩内容