可以不一样。user.email最好和github账户填写的邮箱一样,靠这个分辨用户生成用户链接呢。user.name无此...
可以不一样,但最好一样。
$ git config user.email 3.修改用户名和邮箱地址 $ git config --global user.name"username"$ git config --global user.email"email"$ git config --global user.user"user" 4.查看配置文件的位置 Git会优先使用库级别的配置,再然后是global级别的配置,最后是system级别的配置. 位置1:/etc/gitconfig 系...
git config user.name git config user.email 步骤四:重置用户名和邮箱 输入以下命令重置用户名和邮箱: git config –global user.name “Your New Username” git config –global user.email “Your New Email” 其中,”Your New Username”和”Your New Email”分别为你想要设置的新用户名和新邮箱。 步骤五:...
$ git config --global user.name"your_username"# 配置用户名 $ git config --global user.email"your_email"# 配置邮箱 以上是全局配置“user.name”和“user.email”的命令,如果想要配置单个项目git的“user.name”和“user.email”,打开终端,进到该项目目录下,运行命令: ...
git config --global user.name=“用户名” git config --global user.email=“邮箱” 配置git账号 git config --global user.name“xzl” git config --global user.email "xzl@qq.com" 查看git账号 git config user.name git config user.email ...
没有使用过TortoiseGit,看图回答吧。原因应该是你没有选中"config source"中的local、global、system选项,git配置分为这三种,界面上的<<符号表示,左侧的配置会覆盖右侧的。而你当前选中的Effective表示,这3个配置共同叠加后的结果,故不可编辑。建议切换到Global进行设置^_^ ...
$ git config –global user.name “Your New Username” $ git config –global user.email “your.email@example.com” “` 2. 查看当前 Git 的用户配置信息: “`shell $ git config –global –list “` 确保显示的用户名和电子邮件地址是你设定的新值。
Customize how Git works and how you interact with it using the Git config command. Learn how to Git config username, Git config email, the hierarchy of the Git config commands, and more.
您应该看到git提交上的错误消息,而不是git push,如图所示。