Git “git push“ 提示 user.name/user.email 不正确

这篇具有很好参考价值的文章主要介绍了Git “git push“ 提示 user.name/user.email 不正确。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

一、问题现象

使用 git push 命令提交代码,提示用户/邮箱不正确。现象如下:文章来源地址https://www.toymoban.com/news/detail-701047.html

➤➤➤ git push 
Counting objects: 47, done.
......
remote: Processing changes: refs: 1, done
remote: ERROR: commit a8c8cc6: email address xxxx is not registered in your account, and you lack 'forge committer' permission.
......

二、解决办法

1. 验证当前的用户名/邮箱

➤➤➤ git config user.name
xxxxxx
➤➤➤ git config user.email
xxxxxx

2. 如果需要修改,方式如下

➤➤➤ git config --global user.name "zzzz"
➤➤➤ git config --global user.email "zzzz"
➤➤➤ git commit --amend --reset-author

3. 重新提交

➤➤➤ git push 

到了这里,关于Git “git push“ 提示 user.name/user.email 不正确的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • git设置username和email

        1 设置用户名 git config --global user.name \\\"username\\\" 2 设置邮箱 (没有双引号) git config --global user.email useremail@qq.com  3 . 查看用户名和密码 git config user.name git config user.email 

    2024年02月08日
    浏览(31)
  • 创建vue项目的时候报错:Skipped git commit due to missing username and email in git config.

    git 进行初始化提交 没有绑定 对应的 git用户名和邮箱 终端进行配置 以此进行输入即可 只要不报错就没有问题 git config --global user.name \\\"xxxx\\\" git config --global user.email \\\"xxxx\\\" 配置完成后进行查看 查看配置的用户名: git config user.name 查看配置的邮箱名: git config user.email

    2024年02月12日
    浏览(28)
  • 【git报错】 push git remote: ERROR: committer email address remote

    使用git推送到分支的时候,会有这样报错: gerri push git remote: ERROR: committer email address remote: ERROR: does not match your user accoun   原因是: 本地配置的用户名邮箱配置错误 。(可能是之前拉取过别的仓库的代码)     修改配置方法: 配置用户名 查看已配置的用户名 配置邮箱 查看

    2024年02月16日
    浏览(34)
  • 在Android Studio中更改git提交的Name或者 Email

    一、为什么要修改提交的git Name 或者 Email ? 如果您当前项目的git提交的Name 或者 Email 是错的,又想改成正确的。该如何操作呢? 如下图: 二、当前项目的打开命令窗口,输入以下代码。 三、在文本编辑器中修改正确的Name 或者 Email。  四、下次再提交代码后就是更改后的

    2024年02月13日
    浏览(32)
  • github中git clone需要username和password问题

    username:一般指你的昵称 password:一般指Creating a fine-grained personal access token 这个的获取办法如下(注意,在11步的时候,记得打开你仓库对应的一些access 权限): Note : Fine-grained personal access token are currently in beta and subject to change. To leave feedback, see the feedback discussion. Verify you

    2024年04月16日
    浏览(21)
  • *** Please tell me who you are.Run git config --global user.email “you@example.com“ git confi

    大家好,我是爱你三千遍斯塔克,我们平常使用gitee的时候可能会遇到这样的问题,如何快速的找到解决问题的方法呢?这里有些资料可供大家参考,希望对大家有帮助: 作者身份未知 ***请告诉我你是谁。 跑 git-config--全局user.email“you@example.com“ git-config--全局用户名“Your

    2024年02月01日
    浏览(43)
  • 【Git错误】上传gitee:Please tell me who you are.Run git config --global user.email “you@example.com

    Author identity unknown *** Please tell me who you are. Run   git config --global user.email \\\"you@example.com\\\"   git config --global user.name \\\"Your Name\\\" to set your account\\\'s default identity. 作者身份未知 ***请告诉我你是谁。 跑 git-config--全局user.email“you@example.com“ git-config--全局用户名“Your name” 设置帐户的默认

    2024年02月05日
    浏览(42)
  • Git 配置:设置用户名(user.name)和 邮箱(user.eamil)

    ​ Git 提交代码时,会要求提供 用户名 和 邮箱 。 ​​ 配置 全局 user.name 和 user.email ,使所有的 Git 仓库都使用统一的用户名和邮箱。 用户名:使用 姓名全拼 邮箱:企业微信分配了邮箱,可以考虑使用 输入配置命令,可以使用 Git Bash 、 cmd 、 VSCode终端 等方式。 配置命令

    2024年02月11日
    浏览(37)
  • git push到github

    现有一需求,将一键将本地的某个文件push到github上的仓库,本文将带你从零实现。 注册一个GitHub账号 下载git bash进行版本控制 创建一个在GitHub上的仓库 在本地构建一个仓库 通过ssh或https建立这两个仓库的联系 绑定ssh密钥 配置本地name和email 注册GitHub账号略过 下载git bash 

    2024年01月17日
    浏览(34)
  • git push 时提示被拒绝

    当我们想在TortoiseGit命令框进行对本地库的一个远程推送时,结果在git push的时候提示出错:   ![rejected]master - master (fetch first) error:无法推送一些引用到 \\\'https:// gitee.com/brige-struggle-version/c-language.git\\\'。 提示:更新被拒绝,因为远程版本库包含您本地尚不存在的提交。 提示:

    2024年02月04日
    浏览(47)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包