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
I struggled with this problem for half a day using Git in PyCharm.
Solution: Settings => Version Control => Git => ticked "Use credential helper" and then it worked perfect.