Github repository creation failed

10 vues (au cours des 30 derniers jours)
Roy Goodman
Roy Goodman le 2 Fév 2021
Commenté : Roy Goodman le 11 Fév 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 commentaires
Sourabh Kondapaka
Sourabh Kondapaka le 11 Fév 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 le 11 Fév 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.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Environment and Settings dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by