Does Matlab Git work in this way??
Show older comments
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.
Answers (1)
OCDER
on 1 Nov 2017
0 votes
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 Comments
lzxh
on 1 Nov 2017
OCDER
on 1 Nov 2017
Did you view and commit changes before pushing changes to remote directory?
- Source Control > View and Commit Changes...
- Select files you want to commit changes to your repo
- Source Control > Push
lzxh
on 1 Nov 2017
OCDER
on 1 Nov 2017
Hm, I think you're pushing to the Git website, not S:/. Does the repo have a git website, and are you asked to login every time you try to push?
lzxh
on 1 Nov 2017
OCDER
on 1 Nov 2017
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
on 1 Nov 2017
Categories
Find more on Source Control in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!