您好!欢迎来到聚码网

聚码网

热门搜索: 相亲小程序    搭子源码    直播系统自有商城   
  • gitmergemanual中是不是写错了?
  • 聚码交流
  • 0 0
  • yhuxAvNbtxUM
    0000-00-00 00:00:00
  • 回帖
gitmanual中的gitmerge一文,地址:https://git-scm.com/docs/git-...我发现有个地方是不是写错了?请熟悉git的朋友看一看。原文如下:Incorporateschangesfromthenamedcommits(sincethetimetheirhistoriespergedfromthecurrentbranch)intothecurrentbranch.Thiscommandisusedbygitpulltoincorporatechangesfromanotherrepositoryandcanbeusedbyhandtomergechangesfromonebranchintoanother.Assumethefollowinghistoryexistsandthecurrentbranchis"master":A---B---Ctopic/D---E---F---GmasterThen"gitmergetopic"willreplaythechangesmadeonthetopicbranchsinceitpergedfrommaster(i.e.,E)untilitscurrentcommit(C)ontopofmaster,andrecordtheresultinanewcommitalongwiththenamesofthetwoparentcommitsandalogmessagefromtheuserdescribingthechanges.原文中,Then"gitmergetopic"willreplaythechangesmadeonthetopicbranchsinceitpergedfrommaster(i.e.,E)untilitscurrentcommit(C)ontopofmaster,gitmergetopic命令会把【topic分支上,从“与master分支的分叉点”开始,到“topic分支的当前提交(C点)”的变化】在master上重放,并且把这个重放的结果记录在新的提交中,......我认为,与master分支的分叉点,应该是A,而不是E,原文中sinceitpergedfrommaster(i.e.,E)似乎是写错了。我并不了解Git在计算合并时的算法,所以以上的理解只是从原文的翻译中来理解,或许在实际计算中,确实需要考虑E点,只是原文的表述没有那么清晰罢了。
最近热帖
近期热议
联系我们
Q Q:317563994
电话:400-000-000
邮箱:317563994@qq.com
时间:09:00 - 17:00