Pycharm GitHub 'Push failed: fatal: Authentication failed'

前端 未结 7 1606
臣服心动
臣服心动 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-04 23:51

    It seems there is some issue (if using https) if username or password contains "some" special characters.

    So, I've generated a secondary password ("personal access token") in GitHub's application settings page (using the "Create new token" button), I did copy this token. Then I've selected Auth Type: Token in Settings->Version Control->GitHub, and pasted the token.

    Testing it: Connection successful for user . Now the git push works perfectly.

提交回复
热议问题