向 github push 提交代码提交不成功

提示信息

Keep my email addresses private We’ll remove your public profile email and use 34889569+Xx@users.noreply.github.com when performing web-based Git operations (e.g. edits and merges) and sending email on your behalf. If you want command line Git operations to use your private email you must set your email in Git.

解决方法

  1. 设置 Git 使用 no-reply 邮箱
git config user.email "34889569+Xx@users.noreply.github.com"
  1. 修正刚才那次被拒绝的提交
git commit --amend --reset-author --no-edit
  1. 重新推送
git push origin main
posted @ 2026-10-24 22:28  zgjack  阅读(3)  评论(0)    收藏  举报