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: 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 (

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

Best regards,


1 Like

Maybe this post can help you:

No, it does’nt

1 Like