Cannot push from git










1














When I am using git push, it shows



remote: You must verify your email address.
remote: See https://github.com/settings/emails.
fatal: unable to access 'https://github.com/mynickname/reponame.git/': The requested URL returned error: 403



But I already verified my email address.



On the other hand, I can pull and add, only push is not available. I can also push by using Github Desktop.



Could someone help me? Many thanks










share|improve this question

















  • 1




    Does running git config --get user.email on the computer you are pushing from give the same email you verified?
    – PeterSW
    Nov 12 '18 at 22:45






  • 1




    Yes, they are the same
    – Leo
    Nov 12 '18 at 22:47






  • 1




    This question sounds related: stackoverflow.com/questions/45551143/… and has an answer that might be of help for you.
    – PeterSW
    Nov 12 '18 at 22:52










  • I just tried this method, but still not working. I didn't change my username before. And I am using Mac OS, it's not feasible to delete user information like that...
    – Leo
    Nov 12 '18 at 23:05















1














When I am using git push, it shows



remote: You must verify your email address.
remote: See https://github.com/settings/emails.
fatal: unable to access 'https://github.com/mynickname/reponame.git/': The requested URL returned error: 403



But I already verified my email address.



On the other hand, I can pull and add, only push is not available. I can also push by using Github Desktop.



Could someone help me? Many thanks










share|improve this question

















  • 1




    Does running git config --get user.email on the computer you are pushing from give the same email you verified?
    – PeterSW
    Nov 12 '18 at 22:45






  • 1




    Yes, they are the same
    – Leo
    Nov 12 '18 at 22:47






  • 1




    This question sounds related: stackoverflow.com/questions/45551143/… and has an answer that might be of help for you.
    – PeterSW
    Nov 12 '18 at 22:52










  • I just tried this method, but still not working. I didn't change my username before. And I am using Mac OS, it's not feasible to delete user information like that...
    – Leo
    Nov 12 '18 at 23:05













1












1








1







When I am using git push, it shows



remote: You must verify your email address.
remote: See https://github.com/settings/emails.
fatal: unable to access 'https://github.com/mynickname/reponame.git/': The requested URL returned error: 403



But I already verified my email address.



On the other hand, I can pull and add, only push is not available. I can also push by using Github Desktop.



Could someone help me? Many thanks










share|improve this question













When I am using git push, it shows



remote: You must verify your email address.
remote: See https://github.com/settings/emails.
fatal: unable to access 'https://github.com/mynickname/reponame.git/': The requested URL returned error: 403



But I already verified my email address.



On the other hand, I can pull and add, only push is not available. I can also push by using Github Desktop.



Could someone help me? Many thanks







github






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 12 '18 at 22:40









LeoLeo

112




112







  • 1




    Does running git config --get user.email on the computer you are pushing from give the same email you verified?
    – PeterSW
    Nov 12 '18 at 22:45






  • 1




    Yes, they are the same
    – Leo
    Nov 12 '18 at 22:47






  • 1




    This question sounds related: stackoverflow.com/questions/45551143/… and has an answer that might be of help for you.
    – PeterSW
    Nov 12 '18 at 22:52










  • I just tried this method, but still not working. I didn't change my username before. And I am using Mac OS, it's not feasible to delete user information like that...
    – Leo
    Nov 12 '18 at 23:05












  • 1




    Does running git config --get user.email on the computer you are pushing from give the same email you verified?
    – PeterSW
    Nov 12 '18 at 22:45






  • 1




    Yes, they are the same
    – Leo
    Nov 12 '18 at 22:47






  • 1




    This question sounds related: stackoverflow.com/questions/45551143/… and has an answer that might be of help for you.
    – PeterSW
    Nov 12 '18 at 22:52










  • I just tried this method, but still not working. I didn't change my username before. And I am using Mac OS, it's not feasible to delete user information like that...
    – Leo
    Nov 12 '18 at 23:05







1




1




Does running git config --get user.email on the computer you are pushing from give the same email you verified?
– PeterSW
Nov 12 '18 at 22:45




Does running git config --get user.email on the computer you are pushing from give the same email you verified?
– PeterSW
Nov 12 '18 at 22:45




1




1




Yes, they are the same
– Leo
Nov 12 '18 at 22:47




Yes, they are the same
– Leo
Nov 12 '18 at 22:47




1




1




This question sounds related: stackoverflow.com/questions/45551143/… and has an answer that might be of help for you.
– PeterSW
Nov 12 '18 at 22:52




This question sounds related: stackoverflow.com/questions/45551143/… and has an answer that might be of help for you.
– PeterSW
Nov 12 '18 at 22:52












I just tried this method, but still not working. I didn't change my username before. And I am using Mac OS, it's not feasible to delete user information like that...
– Leo
Nov 12 '18 at 23:05




I just tried this method, but still not working. I didn't change my username before. And I am using Mac OS, it's not feasible to delete user information like that...
– Leo
Nov 12 '18 at 23:05












3 Answers
3






active

oldest

votes


















0














Most likely your git configuration is using a different email address from what you verified. Check that git config user.email outputs the same email that you used on GitHub. If it does not, set it with git config user.email "correct@email.com", then try pushing again.






share|improve this answer




















  • Yes, I have checked the email address, and they are the same and verified.
    – Leo
    Nov 12 '18 at 22:51


















0














There is an osxkeychain in Mac, we can delete account information by using



  1. git config --local --unset credential.helper

  2. git config --global --unset credential.helper

  3. sudo git config --system --unset credential.helper

Just asked GitHub Support, the official solution: https://help.github.com/articles/updating-credentials-from-the-osx-keychain/






share|improve this answer






























    0














    I have a same problem as you and I can not solve it.
    But there is a second way to push you commits.



    $ git remote set-url origin git@github.com:bitfish-xyz/viewport.git
    $ git pull -u origin master


    Use SSH instead of HTTPS.



    This work fine for me. If I can solve this directly, I will update this answer.






    share|improve this answer






















      Your Answer






      StackExchange.ifUsing("editor", function ()
      StackExchange.using("externalEditor", function ()
      StackExchange.using("snippets", function ()
      StackExchange.snippets.init();
      );
      );
      , "code-snippets");

      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "1"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













      draft saved

      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53271136%2fcannot-push-from-git%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      0














      Most likely your git configuration is using a different email address from what you verified. Check that git config user.email outputs the same email that you used on GitHub. If it does not, set it with git config user.email "correct@email.com", then try pushing again.






      share|improve this answer




















      • Yes, I have checked the email address, and they are the same and verified.
        – Leo
        Nov 12 '18 at 22:51















      0














      Most likely your git configuration is using a different email address from what you verified. Check that git config user.email outputs the same email that you used on GitHub. If it does not, set it with git config user.email "correct@email.com", then try pushing again.






      share|improve this answer




















      • Yes, I have checked the email address, and they are the same and verified.
        – Leo
        Nov 12 '18 at 22:51













      0












      0








      0






      Most likely your git configuration is using a different email address from what you verified. Check that git config user.email outputs the same email that you used on GitHub. If it does not, set it with git config user.email "correct@email.com", then try pushing again.






      share|improve this answer












      Most likely your git configuration is using a different email address from what you verified. Check that git config user.email outputs the same email that you used on GitHub. If it does not, set it with git config user.email "correct@email.com", then try pushing again.







      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Nov 12 '18 at 22:47









      CYB3RCYB3R

      309518




      309518











      • Yes, I have checked the email address, and they are the same and verified.
        – Leo
        Nov 12 '18 at 22:51
















      • Yes, I have checked the email address, and they are the same and verified.
        – Leo
        Nov 12 '18 at 22:51















      Yes, I have checked the email address, and they are the same and verified.
      – Leo
      Nov 12 '18 at 22:51




      Yes, I have checked the email address, and they are the same and verified.
      – Leo
      Nov 12 '18 at 22:51













      0














      There is an osxkeychain in Mac, we can delete account information by using



      1. git config --local --unset credential.helper

      2. git config --global --unset credential.helper

      3. sudo git config --system --unset credential.helper

      Just asked GitHub Support, the official solution: https://help.github.com/articles/updating-credentials-from-the-osx-keychain/






      share|improve this answer



























        0














        There is an osxkeychain in Mac, we can delete account information by using



        1. git config --local --unset credential.helper

        2. git config --global --unset credential.helper

        3. sudo git config --system --unset credential.helper

        Just asked GitHub Support, the official solution: https://help.github.com/articles/updating-credentials-from-the-osx-keychain/






        share|improve this answer

























          0












          0








          0






          There is an osxkeychain in Mac, we can delete account information by using



          1. git config --local --unset credential.helper

          2. git config --global --unset credential.helper

          3. sudo git config --system --unset credential.helper

          Just asked GitHub Support, the official solution: https://help.github.com/articles/updating-credentials-from-the-osx-keychain/






          share|improve this answer














          There is an osxkeychain in Mac, we can delete account information by using



          1. git config --local --unset credential.helper

          2. git config --global --unset credential.helper

          3. sudo git config --system --unset credential.helper

          Just asked GitHub Support, the official solution: https://help.github.com/articles/updating-credentials-from-the-osx-keychain/







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 13 '18 at 4:03

























          answered Nov 13 '18 at 2:07









          LeoLeo

          112




          112





















              0














              I have a same problem as you and I can not solve it.
              But there is a second way to push you commits.



              $ git remote set-url origin git@github.com:bitfish-xyz/viewport.git
              $ git pull -u origin master


              Use SSH instead of HTTPS.



              This work fine for me. If I can solve this directly, I will update this answer.






              share|improve this answer



























                0














                I have a same problem as you and I can not solve it.
                But there is a second way to push you commits.



                $ git remote set-url origin git@github.com:bitfish-xyz/viewport.git
                $ git pull -u origin master


                Use SSH instead of HTTPS.



                This work fine for me. If I can solve this directly, I will update this answer.






                share|improve this answer

























                  0












                  0








                  0






                  I have a same problem as you and I can not solve it.
                  But there is a second way to push you commits.



                  $ git remote set-url origin git@github.com:bitfish-xyz/viewport.git
                  $ git pull -u origin master


                  Use SSH instead of HTTPS.



                  This work fine for me. If I can solve this directly, I will update this answer.






                  share|improve this answer














                  I have a same problem as you and I can not solve it.
                  But there is a second way to push you commits.



                  $ git remote set-url origin git@github.com:bitfish-xyz/viewport.git
                  $ git pull -u origin master


                  Use SSH instead of HTTPS.



                  This work fine for me. If I can solve this directly, I will update this answer.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Dec 28 '18 at 12:05

























                  answered Dec 28 '18 at 11:19









                  saltfishsaltfish

                  3721214




                  3721214



























                      draft saved

                      draft discarded
















































                      Thanks for contributing an answer to Stack Overflow!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid


                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.

                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53271136%2fcannot-push-from-git%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      這個網誌中的熱門文章

                      How to read a connectionString WITH PROVIDER in .NET Core?

                      Node.js Script on GitHub Pages or Amazon S3

                      Museum of Modern and Contemporary Art of Trento and Rovereto