# my computer rebuilds system for better performance # then cannot use "git" anymore # try to fix it https://stackoverflow.com/questions/43378060/meaning-of-the-github-message-push-declined-due-to-email-privacy-restrictions git init git add . git commit ############### 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. Omit --global to set the identity only in this repository. ############### git remote --verbose # verĀ·bose # adjective # using or expressed in more words than are needed: # "much academic language is obscure and verbose" git remote remove origin git remote add origin https://github.com/arthur1573/arthur1573.github.io git pull git pull origin main git commit git push git push --set-upstream origin main # remote: error: GH007: Your push would publish a private email address. # push declined due to email privacy restrictions # sign in github --> setting --> email # Not visible in emails # This email will not be used as the 'from' address for web-based Git operations, e.g., edits and merges. We will instead use xxxxxxxx+arthur1573@users.noreply.github.com git config --global user.email # change it to: git config --global user.email xxxxxxxx+arthur1573@users.noreply.github.com # Reset the author information on your last commit: git commit --amend --reset-author git push --set-upstream origin main # done # check current git config git config list # check current git proxy git config http.proxy #set a proxy for git git config --global http.proxy http://localhost:1080 # for all proxy # unset a proxy git config --global --unset http.proxy