필터 지우기
필터 지우기

Does Matlab Git work in this way??

조회 수: 1 (최근 30일)
lzxh
lzxh 2017년 11월 1일
댓글: lzxh 2017년 11월 1일
There are two of us working on a project, ie. we are both working on TEST.m; we've created a remote repo on our shared network (say S:/ drive). We each individually cloned the remote repo on S:/ into our local working directory.
There is a copy of TEST.m on the remote repo, as well, as in our local repos. Now, I've made a change to my copy of TEST.m in local, I then commit and pushed the changes to the remote repo.
Now the question is, should I be seeing the changes on S:/TEST.m when I right-click and view in notepad?
Thanks.

답변 (1개)

OCDER
OCDER 2017년 11월 1일
Yes, if you pushed changes to the remote repo, S:/TEST.m should be the new one. Your colleague will have the old version of TEST.m, which much be synced (via Fetch) before he/she can push changes to the remote repo. Likely, your colleague must resolve any conflicting edits on TEST.m before pushing changes (Matlab will give warnings that changes were made to the remote repo).
  댓글 수: 7
OCDER
OCDER 2017년 11월 1일
Interesting... I also get the same issue when using a shared drive. Changes cannot be fetched or pushed between the local and remote repository. Hopefully someone else or a MathWorks member can answer this for you. If you don't get a response, try asking at the Bug Reports site.
I'm guessing the current Git features were designed to use github.com as the "remote" repository, instead of the S:\, hence this usage may not be supported.
lzxh
lzxh 2017년 11월 1일
Thanks Donald. Good to know it is not just me. I tried to set remote repo to a shared drive in git command line, and it works; so I just assumed, it would work the same in Matlab GUI.

댓글을 달려면 로그인하십시오.

카테고리

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