查看、修改本地git用户名和邮箱地址

用户名和邮箱地址的作用

用户名和邮箱地址是本地git客户端的一个变量,不随git库而改变。

每次commit都会用用户名和邮箱纪录。

github的contributions统计就是按邮箱来统计的。

查看用户名和邮箱地址

git config user.name

git config user.email

修改用户名和邮箱地址

git config --global user.name "username"

git config --global user.email "email"

复制代码
git config --global user.name "韧"

git config --global user.email "ren@qzcsbj.com"

修改后的查询结果

相关推荐
___波子 Pro Max.2 小时前
Git Remote 仓库地址变更
git
ModestCoder_7 小时前
Git 忽略所有 `.xlsx`,但保留指定 Excel 文件的方法
git·excel
阡陌..8 小时前
202605新版git_2.54.0常用操作指令
大数据·git·elasticsearch
会笑的小熊9 小时前
VScode项目推送到git仓库
ide·git·vscode
zhangfeng11339 小时前
宝塔服务器完全可以安装 Git,进行版本管理,而且非常简单
运维·服务器·人工智能·git·编程
Bdygsl10 小时前
Git(1)—— 基本理解与使用
git
JiaWen技术圈11 小时前
增量静态再生(ISR)详解:Next.js 中的实现与应用
javascript·git·ubuntu
The Chosen One98513 小时前
【Linux】深入理解Linux进程(二):进程的状态
linux·运维·服务器·开发语言·git
TimberWill13 小时前
git worktree实现分支管理
git
普修罗双战士14 小时前
项目设计-文章系统发布文章完整前后端设计
java·数据库·vue.js·spring boot·git·intellij-idea