'Effective' Pulling without merge or commandline Git?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Brand new to Git as of yesterday, sorry. I am running 2016B on my main PC and 2015B on 'student' PC's. I work on my main PC and have Git Client installed, so I can enjoy all the functionality. However, I also have Matlab installed on a bunch of student PC's without the Git client. The idea of my workflow is that all commits are done on my PC (or other PC's with Git Client installed), but the student PC's need to be able to periodically pull the data.
But, once the local repo is setup, without the Git Client, they can't merge, ergo they can't pull. I don't need to merge, but overwrite. I have admin restrictions on installing Git on these machines. Is my only option to delete and reclone the repo every time I want to pull? It seems like a really heinous workaround. I then stop seeing the benefit of Matlab's native Git at all without the client installed.
0 Kommentare
Antworten (1)
Sean de Wolski
am 12 Jan. 2018
You may have more luck on Stack Overflow for git workflows.
What are you using for the remote? My team uses an internal gitlab server which has roles and permissions as well as protected branches. You could give the students guest access so they can pull and use locally but not merge or push to a protected branch.
https://docs.gitlab.com/ee/user/project/protected_branches.html
2 Kommentare
Sean de Wolski
am 12 Jan. 2018
Interesting, I didn't realize you could use a subset of MATLAB's git without command line git installed. Good to know!
To be perfectly honest, I only use MATLAB's current folder git for simple diffing (especially of mlx/mat/mlapp files) and quick reverts. I use Tortoise for everything else.
Siehe auch
Kategorien
Mehr zu Git in MATLAB finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!