Push trusted due to email privacy restrictions (gh007 error code) solution
An error is reported when pushing the local warehouse to GitHub:
exception information:
! [remote rejected] master -> master (push declined due to email privacy restrictions)
Exception reason: when configuring git, the author’s email information is set, triggering GitHub privacy protection settings: block command line pushes that expose my email
Solution:
Turn off block command line pushes that expose my email:
Many people choose to turn off the email setting option block command line pushes that expose my email in GitHub; It’s rude, but it’s not recommended.
Personal recommendation:
Change the email address of GIT configuration: if you don’t want to turn off the above settings, you can solve it by modifying email:
1. Use the command to view the current global user email: git config — global user.email
2. Find GitHub recommended email: in setting — & gt; Email –> Email under keep my email private; The format is: ID+ [email protected]
3. Reset global user email: git config — global user.email “recommended email from GitHub”
4. Reset last submitted author information git commit — amend — reset author
After entering the command, enter VI mode (GIT default editor);
5. Resubmit git push
Read More:
- Git Push remote error: GH007: Your push would publish a private email address.
- Git Push Error: failed to push some refs to ‘[email protected]:
- Git Push Error: error: failed to push some refs… hint: Updates were rejected because the remote…
- How to Solve pod Error: “Authentication token is invalid or unverified. Either verify it with the email that…”
- git_error:unable to auto-detect email address [How to Solve]
- [Solved] Git submits locally to the remote warehouse Error: failed to push some refs to…
- Git push Failed to connect to localhost port 1080 [How to Solve]
- How to Solve Git Error: error: failed to push some refs to……
- [Solved] Git Common Error: error: src refspec xxx does not match any/error: failed to push some refs to
- Git push Submit to Remote Error: “remote: Support for password authentication was removed on August 13, 2021.“
- [Solved] error: failed to push some refs to ‘https://gitee.com/wangdxstudy/mygirl.git‘
- Git fatal: No configured push destination. Either specify the URL from the command-line or co
- [Solved] Unity Import Xcode Project Error: iOS framework addition failed due to a CocoaPods installation failure.
- Local repository upload to remote repository error: failed to push some refs to ‘https://hub.fastgit.org/zhizhangxuezhang/ui-test.git‘
- [Solved] Kubeadm Reset error: etcdserver: re-configuration failed due to not enough started members
- [Fixed]ERROR: canceling statement due to conflict with recovery
- How to Fix Error 1069:The service did not start due to a logon failure
- How to Solve Hmaster hangs up issue due to namenode switching in Ha mode
- [Solved] Git Push Error: &fatal: the remote end hung up unexpectedly
- [step on the pit] idea submits the code to GitHub and prompts 403 — the requested URL returned error: 403