How to link Git remote repository to Simulink Project
이전 댓글 표시
I am having trouble finding how to add a remote repository to my 'version control system' for a simulink project. I found I can add the repository as a submodule but this doesn't work for my purposes because I would like to link the entire project to a repository and not just a subfolder.
I would really appreciate any help here.
Kind regards,
Chris
답변 (1개)
Nick Sarnie
2017년 10월 17일
편집: Nick Sarnie
2017년 10월 17일
0 개 추천
Hi Christopher,
To create a Simulink Project with Git inside the main project folder, try the following steps:
- Open MATLAB, click New and select Simulink Project in the dropdown
- On the left side of the Start Page window, select Source Control
- Select Git in the Source control integration dropdown window
- Enter the remote path to the Git repository in the Repository path field. For example, https://mygitwebsite.com/myusername/myrepository.git
- Select a location for the project in the Sandbox field
- Click Retrieve
From here, the Git repository should be cloned and linked to the root directory.
댓글 수: 3
Koen V
2017년 11월 8일
Hi, I have tried this for my own project but I keep getting errors like: " Could not check out https://gitlab.myproject.git to /home/name/git/foldername with error: https://gitlab.myproject.git: cannot open git-upload-pack
Any advise?
James Marriott
2018년 9월 10일
I also have the same issue when using https authentication. Has this ever been resolved?
Nick Sarnie
2018년 9월 10일
Hi James,
Please reach out to Technical Support if you are still having issues.
Thanks, Nick
카테고리
도움말 센터 및 File Exchange에서 Source Control에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!