Can't create GitHub repositoy using 2017.1

Answered

Whenever I attempt to share a new project of mine on GitHub, since using 2017.1, I am greeted with an error that reads:

 

Failed to create GitHub Repository
Can't create repository: MyProjectName 404 Not Found - Not Found

 

I go to VCS > Import into Version Control > Share Project on GitHub and press the "Share" button to get this error. Previously, on 2016.3.5, taking these steps would successfully publish my project on GitHub, as described in the link below.

https://www.jetbrains.com/help/idea/2016.3/publishing-a-project-on-github.html

Now what should I do to publish my code to GitHub using IntelliJ?

0
8 comments

Is your project under Git control? Try to init the repository first:

2

I just clicked on Create Git Repository as in your screenshot and clicked OK on the "Select directory for git init" window that popped up. It seemed to put my project under git. However, then when I tried to "Share Project on GitHub" again, I received exactly the same error as before.

1

Most likely the error occurs because the account used to authenticate to GitHub does not have permissions.

Please double check that the account in Settings - Version control - GitHub is the correct one.

0

I went to Settings - Version control - GitHub and clicked Test. I received a message box titled "Success" with the text "Connection successful for user MyName".

I'm not sure if this helps, but I noticed that for my projects that I have already shared on GitHub, I am able to make commits without a problem. The only issue is when trying to share new projects on GitHub for the first time.

0

As I understand you use token to authenticate. Please make sure the token is granted 

Please, on the Github go to Your account Settings - Personal access tokens, edit the IntelliJ token and make sure the token is granted full repo permissions:

Btw, Gits permissions also should be there.

2

That did it! It's working properly now. Thank you so much!

0
Avatar
Permanently deleted user

Hello

The same problem.

 but all this doesn't help me. Failed to create GitHub Repository: Git is not installed

 

0

@... Please go to Preferences | Version Control | Git and run "Test" next to a Git path. If you don't have one you will be prompted to install it.
Also please run 'git --version' in command-line/terminal in order to see whether it works fine there.

0

Please sign in to leave a comment.