您应该看到git提交上的错误消息,而不是git push,如图所示。
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.
(1)命令行配置 git config--globaluser.name"username"git config--globaluser.email"email" 可将username和email换成github(或者其它类似远程仓库)的用户名和密码。 (1.1) 全局变量 --global 表示全局的,即当前用户都有效,该配置会出现在 ~/.gitconfig 文件中,~表示当前用户的目录,比如我的是:C:\Users\usern...
Just supply your own name and email address, and Git commits will no longer be a problem. To verify that the git username and email address have been saved successfully, run thegit config --listcommand and look for theuser.nameanduser.emailfields in the output....
git config --global user.email "<USER_EMAIL>" 运行以下命令以检查更改是否成功: Bash 复制 git config --list 确认输出包含类似以下示例的两行。 你的用户名和电子邮件地址将与示例中显示的内容不同。 输出 复制 user.name=User Name user.email=user-name@contoso.com 设置...
// 全局配置gitconfig--globaluser.name"username"gitconfig--globaluser.email"email"// 局部配置gitconfiguser.name"xxx"gitconfiguser.email"flyree@fzsw.com" 查看配置的命令: gitconfig--list 添加远程仓库: gitremoteaddgitee https://gitee.com/xxxflytreexx/xxxx.gitgitpush-u origin"master"gitremoteadd...
Shown when the user’s information is guessed from the system username and domain name, to tell the user how to set their identity configuration. mergeConflict Shown when various commands stop because of conflicts. nestedTag Shown when a user attempts to recursively tag a tag object. pushAlr...
VSCode Version: 1.52.0 OS Version: Windows 10 Version 1909 18363.1198 + Windows Server 2019 Version 1809 17763.1577 Steps to Reproduce: Update to Visual Studio Code 1.52.0 Have empty values for user.name and user.email in git config (git...
检查配置是否成功:git config --global--list查看设置的用户名和Email。 如果上面和下面要讲的任何命令有疑问,使用命令git help <command>查看command的用法。 创建版本库 什么是版本库呢?版本库又名仓库,英文名repository,你可以简单理解成一个目录,这个目录里面的所有文件都可以被Git管理起来,每个文件的修改、删除,...
Step 2: Check Git Username Utilize the below-provided command to view the current username: $git configuser.name Step 3: Change Username To change the username, run the “git config” command. The option “–global” is utilized to set the username globally in Git: ...