【发布时间】:2017-01-25 03:52:53
【问题描述】:
我正在使用 eZ Platform 开源 CMS。
启动项目的方式是使用composer 创建它。
经过一些工作,新版本出来了,唯一的更新方法是从github存储库到git pull,合并它并解决冲突。
整个过程很简单。除了我自己的git repo 中提供了来自 eZ Plaform 的整个开发树。
有没有办法将最新的提交拉入某个分支(开发)的头部,而无需拉取自开始以来的所有历史记录?
基本上我想要这样:
A----B----C----D----E (merge from latest commit on remote branch)
/
F (basically not even having F in my git tree)
【问题讨论】:
-
嗯 composer 的全部目的是让你不需要这样做......你为什么不能直接运行
php composer update? -
这里是如何更新doc.ez.no/display/DEVELOPER/Updating+eZ+Platform的说明。不幸的是,您不能只更改 composer 中的版本。
-
哇,太糟糕了
-
为什么你不能在一个临时分支中提取整个历史记录,然后在你想要的分支上挑选最新的提交?
Warning: This is subject to conflicts. -
试试
git fetch <remote> --depth=<n> <branch>,n 为 1 或 2。
标签: php git github ezpublish ezplatform