Pycharm GitHub 'Push failed: fatal: Authentication failed'

git, github, pycharm, windows

Solution

I tried all but it worked me charm : The problem I had : Every thing was working from terminal and from Github desktop as well. But when I tried to PUSH/PULL from pycharm it wasn't working. Reason : It happens because by-default pycharm save password locally in DB.

Work around: Go to File > Settings > Appearance & Behavior > System Settings> Passwords, clicked on 'Do not save..", restarted IntelliJ and VCS asked for password again.

Problem

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.

Original source