Pycharm GitHub 'Push failed: fatal: Authentication failed'

前端 未结 7 1727
臣服心动
臣服心动 2021-01-04 23:19

Every time I try to push a repository in GitHub with Pycharm the it fails.

Push failed: fatal: Authentication failed for \'https://github.com/(my github repo         


        
7条回答
  •  醉话见心
    2021-01-05 00:01

    So I found the solution to my problem, and I hope this helps:

    If you are using KDE, or Gnome, your "KDE Wallet", or "Gnome Keyring" manager will save your password when you push for the first time. However, if you enter the password wrong, these managers (ksshaskpass for KDE) will store the wrong password and will send the wrong password every time.

    To fix this, open the appropriate manager and change the password. With KDE, it is in: Kick-off-menu > System Settings > Account Details > KDE Wallet, then click "Launch Wallet Manager", and find "ksshaskpass", expand it, and then expand "Passwords", then find your github registered email address there, click it, and on the right, click on "Show Contents". Now change that value (in case wrong password), then hit save. and you're done!

    Now that means you don't have to type in your password each time for https push, and you don't have to use SSH keys either ;)

提交回复
热议问题