Github repository creation failed

25 visualizzazioni (ultimi 30 giorni)
Roy Goodman
Roy Goodman il 2 Feb 2021
Commentato: Roy Goodman il 11 Feb 2021
I have a MATLAB Project (capital P) that I'm managing using git. I would like to upload it to github.
It's my second such project so I thought this would all be easy.
In the Project window, I click on Share->GitHub
This opens a text entry window with the title "Create GitHub repository" with fields "User name," "Personal Access Token," and "repository name".
I enter all of these and get the following error message:
Repository creation failed.
The server responded with this message:
404 - Not Found
Now what?
  2 Commenti
Sourabh Kondapaka
Sourabh Kondapaka il 11 Feb 2021
Can you please retry with the Username and an updated personal access token.
Also check if github is not blocked in the network.
If this did not resolve the issue, try out with a new Matlab Project and check if it still fails.
Roy Goodman
Roy Goodman il 11 Feb 2021
Since I didn't hear back on Answers after a few days, I kicked this up to an official service request. They gave more or less the same answer, and also suggested the problem might be due to a firewall. Neither suggestion helped so they told me to try this workaround:
1) Create an empty project on GitHub website and copy the URL to their clipboard.
2) In their project click on the "Use Source Control" button in the project's toolstrip.
3) Add the project to git (this will create a local repository for the project)
4) Click on the "remote" button in the "Source Control" section of the project toolstrip.
5) In the dialog that appears paste the GitHub remote URL and confirm.
6) Commit and push any changes.
That did it and is good enough for me, since creating projects on github is something that I do infrequently.

Accedi per commentare.

Risposte (0)


Scopri di più su Source Control Integration in Help Center e File Exchange


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by