Github repository creation failed

76 ビュー (過去 30 日間)
Roy Goodman
Roy Goodman 2021 年 2 月 2 日
コメント済み: Roy Goodman 2021 年 2 月 11 日
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 件のコメント
Roy Goodman
Roy Goodman 2021 年 2 月 11 日
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.

サインインしてコメントする。

回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by