Issues Sharing on Github Follow
Hello All,
I'm trying to get this integration with github working. I've tried with both password and token auth and I'm getting the same result. Whenever I try and share something on github it keeps telling me this:
Can't finish GitHub sharing process
Successfully created project 'lp' on GitHub, but initial push failed:
fatal: unable to access 'https://github.com/username/lp.git/': The requested URL returned error: 403
Anyone have any idea what could be causing this?
I'm trying to get this integration with github working. I've tried with both password and token auth and I'm getting the same result. Whenever I try and share something on github it keeps telling me this:
Can't finish GitHub sharing process
Successfully created project 'lp' on GitHub, but initial push failed:
fatal: unable to access 'https://github.com/username/lp.git/': The requested URL returned error: 403
Anyone have any idea what could be causing this?
Please sign in to leave a comment.
You may want to try:
You can try to change https://github.com/username/lp.git to https://username:password@github.com/username/lp.git
now the file containing such information is no longer .git, it's the config file.
and I personally don't think storing your github password in a non encrypted file is a good idea. As long as you have connected pycharm to github, https://username@github.com/username/lp.git should do just fine.
Most likely the initial issue was caused by git credential helper which saved incorrect credentials (or correct, but of another account) and kept using it.
The solution to this would be to clear the credential-helper, or better disable it with git config --unset-all credential.helper and let IntelliJ handle authentication via tokens. You need to add accounts to Settings | Version Control | GitHub to do so.