IntelliJ unable to "Share Project to GitHub"

Hey Guys!

I want to Share a project to GitHub but it won’t work. When I do it with VCS -> Import into Version Control -> Share Project on GitHub it throws this exception

Can't finish GitHub sharing process
			Successfully created project 'Enigma' on GitHub, but initial push failed:
			git@github.com: Permission denied (publickey).
			Could not read from remote repository.
			Please make sure you have the correct access rights
			and the repository exists.

When I create a local Git repository with VCS -> Import into Version Control -> Create Git Repository… and add a remote via VCS -> Git -> Remotes… and add a repository via internet link and try to push it it throws this exception

Push rejected: Push to origin/master was rejected

I’m logged in with my GitHub account (https://imgur.com/a/f9KVqQa).

Can I also share a project to GitLab? Is this possible?

Best regards,

Lockna

1 Like

Maybe this post can help you: https://github.community/t5/How-to-use-Git-and-GitHub/pycharm-amp-github-token/m-p/13460

No, it does’nt

1 Like

https://stackoverflow.com/a/61133519/2141309