我想创建一个git包,其中只包含我的存储中的提交,这些提交不在存储的基础之上.我希望这样做而不是发送每一次提交,因为我知道收件人已经完成了包括分歧点在内的所有提交.
我得到这个:
$ git bundle create ehhh stash...master^1
fatal: Refusing to create empty bundle.
Run Code Online (Sandbox Code Playgroud)
......这没有任何意义,因为git rev-list stash...master^1返回两个提交.
我不理解这个工具还是这个限制?
问题是捆绑包无法正确解释树形存储...master^1。解决方法是创建一个标签:
git tag bundle_end master^1
git bundle create ehhh stash...bundle_end
Run Code Online (Sandbox Code Playgroud)
请注意,树形范围说明符检索自开始以来的所有提交,不包括开始提交本身。
| 归档时间: |
|
| 查看次数: |
574 次 |
| 最近记录: |