Github repository creation failed

조회 수: 29 (최근 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
Sourabh Kondapaka
Sourabh Kondapaka 2021년 2월 11일
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 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개)

카테고리

Help CenterFile Exchange에서 Source Control Integration에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by