Error “Your push would publish a private email address”

后端 未结 5 1244
广开言路
广开言路 2020-12-04 04:56

I\'m very new to GitHub/VCS.

When I try to share my project on GitHub, I get the following error message.

    Can\'t finish GitHub sharing process
             


        
5条回答
  •  再見小時候
    2020-12-04 05:50

    1. Go to Settings
    2. Click on Emails. Scroll to bottom. Keep my email addresses private section will be there.
    3. Note down public email id mentioned over there.
    4. Reset your local global email id with public email id mentioned in previous step using following command.
    $ git config — global user.email ""
    
    1. Revert your last local commit which was getting blocked.
    $ git reset --soft HEAD~1 
    
    1. Make a fresh commit and push it. It will work.

提交回复
热议问题