《2017年华为Git实践-工作模式创新及多中心分布式架构.pdf》由会员分享,可在线阅读,更多相关《2017年华为Git实践-工作模式创新及多中心分布式架构.pdf(21页珍藏版)》请在三个皮匠报告上搜索。
1、?Git?蒋 鑫?gotgit?http:/ Git contributor(git clean-i,.)Git l10n coordinator(https:/ 2015.12 加入华P iSource g队“?”Git F3mily?Distributed;freedom;commit any where,any timeGeekyFork+Pull Request Social coding UIProject by project,not a platform Centralized,lack of freedom Just for review,and the UIReview in
2、 Google style Multi-repo solution:repoSync of fork repos;waste of disk spaces Multi-repo management,git submodule?Google DEyle code CeGieH foC GiE GiEHFb AoHeCed E:e H:ole oAen DoFCce?阿里腾讯?MicrosoftVSTSOMEGA Git?Git?1?clone?Fresh clone,and hard linksAfter new push and GC?2?Strange procedureoriginups
3、tream?How about 100 repos?forkFork 1Repo 1forkFork 2Repo 2forkFork100Repo 100.How about topic branches?slow down clone/fetch loose references?high IO chaos of visibility of all refsBoring proceduregitremoteaddupstreamURLgitfetchupstreamgitrebaseupstream/mastergitpush-foriginHEADforkoriginupstream?3?
4、Multiple repos in one project,why?GC,clone are quite slow for big repos;auth;micro services git submodule?Recurisive submodules:?Update of gitlinks.?Conflict of gitlinks.?2016?iSource?20?1000?.No fork,no feature branch,and no submodulesOMEGA?No foCk CCe3Ee-R MR by AFD:DC3fE mode-R MR No fe3EFCe bC3n
5、c:/Aeci3l CefeCeneD:CefD meCgeD 123:e3d No DFbmodFleD M3nifeDE CeAo 3nd 1ML giE-mm:CeHCiEe CeAo in gol3ng foC OMEGAi/oFCcegit push -receive-pack=omega origin HEAD:refs/for/target-branch/local-branchgitlab-shell(omega?)giE-CeceiGe-A3ck-omeg3GiE HookD omeg3-meCge-CeqFeDE omeg3-ACe-CeceiGe omeg3-AoDE-C
6、eceiGeAPI#1 GET/ssh-infoAPI#3 POST super-mrAPI#2 POSTmerge-requestAPI#4 GET super-mr/:idDC3fE meCge CeqFeDEOne-stop Multi-Endpoints Git AccessOMEGA?git push origin HEAD:refs/for/master/my/topic1#more git commit.git push origin HEAD:refs/for/master/my/topic1 git push origin HEAD:refs/for/master/my/to