How do i sign a commit from a cloned SSH repository in gitlab?

Im trying to commit files that i've altered but i get the error message saying "signing commits using SSH keys is not supported". How do i fix this? From what i've read, matlab only supports X509 keys. Do i have to get an specific key from the repository or create my own on the computer? Do i have to get an specific key from the repository or create my own on the computer? Thanks in advance

回答 (1 件)

Gyan Vaibhav
Gyan Vaibhav 2024 年 4 月 18 日

0 投票

Hi Allan,
I tried cloning my gitlab project and was able to commit changes to the repo using the SSH keys. I am not sure what is going wrong for you, however, you can make sure you followed these steps.
  1. Set up git control in MATLAB and gitlab by generating the shh-keys. Please follow this guide. https://www.mathworks.com/help/matlab/matlab_prog/set-up-git-source-control.html#use_ssh_authentication
  2. Clone the project, and make changes.
  3. Go to source control and commit. This should work fine.
Hope it resolves your issue.
Thanks,
Gyan

1 件のコメント

Allan
Allan 2024 年 4 月 18 日
Thank you so much for the reply, Gyan!
Unfortunately, it did not resolve my issue. I followed these steps (i had done it before and i did it again now just to be sure) and i get the same error message!
Best regards!
Allan

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

カテゴリ

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

製品

リリース

R2024a

タグ

質問済み:

2024 年 4 月 17 日

コメント済み:

2024 年 4 月 18 日

Community Treasure Hunt

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

Start Hunting!

Translated by