Clone GitHub repository - Authentication Failed

I am trying to clone a GitHub repository to Matlab, but every time I put the link to the repository path through source control, I am asked to insert my username and password.
Although the credentials I insert are correct, I am repeatedly requested to insert the username and password again. If I don't insert my credentials, the authentication fails and I do not have access to the repository.
Has anyone faced this issue and, if so, any ideas on how to resolve it?

回答 (1 件)

Turlough Hughes
Turlough Hughes 2021 年 11 月 2 日

0 投票

You need to follow the steps described here. See the part about git credential manager or setting up ssh authentication. Make sure also that you have Git installed.
I used this a while back to setup git hooks, which are very handy for push, pull, commit, etc with a remote repository on GitHub. I don't think it's necessary to do steps 1 - 3 (Git Hooks) if you're just trying to sort out the credentials, but if you're working with remote repos regularly then it's pretty useful to have Git Hooks as well.

2 件のコメント

Adhiti Raman Thothathri
Adhiti Raman Thothathri 2022 年 7 月 14 日
Hi, I'm having the same issue. I already followed those steps but it didn't help me. Do you have any other suggestions?
Luca Martinelli
Luca Martinelli 2022 年 8 月 8 日
Try inserting a Token instead of the password. Whan you generate the token, remember to give sufficient rights.

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

カテゴリ

ヘルプ センター および File ExchangeSource Control についてさらに検索

製品

リリース

R2019a

質問済み:

2021 年 11 月 2 日

コメント済み:

2022 年 8 月 8 日

Community Treasure Hunt

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

Start Hunting!

Translated by