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 'https://github.com/username/lp.git/': The requested URL returned error: 403

Anyone have any idea what could be causing this?
4 comments

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: https://github.com/username/lp.git/ should be modified as : https://username@github.com/username/lp.git/
  4. Hopefully this works for you. 
0

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.

0

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.

0

Please sign in to leave a comment.