Pycharm GitHub'推送失败:致命:身份验证失败' [英] Pycharm GitHub 'Push failed: fatal: Authentication failed'
问题描述
推送失败:致命:身份验证失败对于'https://github.com/(my github repository)/'
在Settings->版本控制 - > GitHub,我填写了主机,日志和密码(验证类型:密码)字段。测试它:连接成功
在设置 - >版本控制 - > Git中,Git可执行文件的路径使用完整路径,SSH可执行文件:Buil-in
Pycharm版本3.1.1
Git版本1.8.4.msysgit.0
在Win 7上。
因此,我在GitHub的应用程序设置页面(使用创建新令牌按钮)中生成了二级密码(个人访问令牌),我没有复制该令牌。然后,我在Settings-> Version Control-> GitHub中选择了Auth Type:Token,并粘贴了该令牌。
测试:用户连接成功。现在,git push完美地工作。
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 repository)/'
In Settings->Version Control->GitHub, I filled the fields Host, Loging and Password (Auth Type: Password). Testing it: "Connection successful"
In Settings->Version Control->Git, Path to Git executable is seted with the full path, SSH executable: Buil-in
Pycharm version 3.1.1 Git version 1.8.4.msysgit.0 On Win 7.
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.
这篇关于Pycharm GitHub'推送失败:致命:身份验证失败'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!