git设置查看修改用户名和邮箱

析构季风
• 阅读 1084

git设置查看修改用户名和邮箱先用Sourcetree试一下:

git设置查看修改用户名和邮箱

如果是用Sourcetree还不行,那就得是用命令了。
进入需要改邮箱的项目,在此处打开命令窗口或者Git Bash Here。

查看命令:

查看用户名 :git config user.name

查看密码: git config user.password

查看邮箱:git config user.email

设置命令:

修改用户名 git config --global user.name "新的用户名"

修改密码 git config --global user.password "新的密码"

修改邮箱 git config --global user.email "新的邮箱"

或者同时设置用户名和密码:
git commit --amend --author="用户名 <邮箱>"

点赞
收藏
评论区
推荐文章
Stella981 Stella981
3年前
Git初始化配置以及配置github
1,配置用户名和邮箱(这里是我github中配置的用户名和邮箱),执行下面命令后,在C:\\Users\\yaosq盘下会出现一个全局文件.gitconfig.gitconfigglobaluser.name"这里换上你的用户名"gitconfigglobaluser.email"这里换上你的邮箱"!(https://
Stella981 Stella981
3年前
Git设置
全局设置gitconfigglobaluser.name"用户名"gitconfigglobaluser.email"xxx@126.com"创建git仓库:mkdirdsa\_zhedacddsa\_zhedagitinittouchREADME.mdgita
Stella981 Stella981
3年前
SourceTree的安装
大家都知道,SourceTree是一款Git客户端工具,同时也是Mercurial和Subversion版本控制系统工具。但是一般的试用都是30天的试用期,现在介绍一个可以导入License的方法,可以永久使用! 附下载链接:SourceTree下载地址(https://www.oschina.net/action/GoToLink?ur
Stella981 Stella981
3年前
Linux 普通用户sudo执行命令不需要密码
假设我这里的用户名是hellostep0:切换到root用户:surootstep1:设置文件权限chmod0777/etc/sudoersstep2:修改文件vim
Stella981 Stella981
3年前
Git生成SSH公钥
一、设置Git全局用户名和邮箱配置gitconfigglobaluser.name"huhansan"gitconfigglobaluser.email"huhansan@qq.com"如果有对设置Git信息有疑惑的可以看这边篇文章:为什么要设置Git的邮箱和用户名(https://my.oschin
Wesley13 Wesley13
3年前
mysql设置时区
mysql设置时区mysql\_query("SETtime\_zone'8:00'")ordie('时区设置失败,请联系管理员!');中国在东8区所以加8方法二:selectcount(user\_id)asdevice,CONVERT\_TZ(FROM\_UNIXTIME(reg\_time),'08:00','0
Stella981 Stella981
3年前
Git安装
安装sudoaptgetinstallgit配置用户名和邮箱gitconfigglobaluser.nameluffygitconfigglobaluser.emailfraiic@163.comgitconfiglist查看1.创建项目,Git
Stella981 Stella981
3年前
Git基本配置
Git配置安装yuminstallgit全局配置设置提交用户名gitconfigglobaluser.name"leoxu"设置提交邮箱gitconfiggl
Stella981 Stella981
3年前
Git总结笔记1
1.环境搭建:Linux:安装gityuminstallygitWindows:到官网下载安装包安装完成后配置如下用户名和邮箱:gitconfigglobaluser.name"YourName"gitconfigglobaluser.email"email@exam
Stella981 Stella981
3年前
Git@OSC的使用 (续)
1.下载GitforWindows,地址http://msysgit.github.io/(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fmsysgit.github.io%2F)2.设置用户名和邮箱,标明你的身份$gitconfig
美凌格栋栋酱 美凌格栋栋酱
4个月前
Oracle 分组与拼接字符串同时使用
SELECTT.,ROWNUMIDFROM(SELECTT.EMPLID,T.NAME,T.BU,T.REALDEPART,T.FORMATDATE,SUM(T.S0)S0,MAX(UPDATETIME)CREATETIME,LISTAGG(TOCHAR(