'Effective' Pulling without merge or commandline Git?
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Sean de Wolski
2018-1-12
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 个评论
Sean de Wolski
2018-1-12
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.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Git in MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!