
Unable to push/pull in MATLAB Online
17 views (last 30 days)
Show older comments
Hi,
I am using MATLAB Online and GitLab. Both are connected to my university account, both username and email address.
I want to clone a remote repository from GitLab into my MATLAB Drive via HTTPS.
When I clone a remote repository into a directory in my MATLAB Drive via right-clicking the whitespace in "Files", clicking "Source Control>Clone Git Repository", I am prompted with the "Authentification Required" window. I type in my university username and a personal access token I generated on GitLab.
The cloning works, and I am then able to checkout different branches, view the files etc.
What does not work is pulling/pushing: When I want to pull, the Command Window prompts me to type in my username. I do so, and then nothing happens. The MATLAB status remains "Busy" until I cancel the process.
I'd prefer avoiding SSH since apparently, for reasons named here https://www.mathworks.com/matlabcentral/answers/494543-why-do-i-receive-an-auth-fail-error-when-interacting-with-a-git-remote-over-ssh-in-matlab-or-why-d, I would need to use the older RSA instead of OpenSSH.
I'd be very appreciative of any help!
0 Comments
Answers (1)
Nipun
on 22 Sep 2023
Hi Alexander,
I understand that your GitHub repository and branches can be cloned and acessed by MATLAB online however you are not able to pull or push the commited changes.
When adding, committing and pushing modified files, the best practice is to use source control tools to access Git in MATLAB. I recommend trying cloning and pushing in a public repository to make sure there is nothing wrong with the access tokens. I assume you are generating the personal acess token (classic) with full access to repositories. I tried to clone and push changes to a 10 MB file in my private repository using MATLAB online, with success since I had granted access to repositories in the scopes section.

Hope this helps.
Regards,
Nipun
0 Comments
See Also
Categories
Find more on Source Control in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!