Issues Sharing on Github

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 '': The requested URL returned error: 403

Anyone have any idea what could be causing this?
Comment actions Permalink

You may want to try:

  1. Go to the .git direction under the repository you want to push
  2. Edit .git/config file 
  3. Change the url under the [remote "origin"] section: should be modified as :
  4. Hopefully this works for you. 
Comment actions Permalink

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, should do just fine.

Comment actions Permalink

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.


Please sign in to leave a comment.