- r - 以节省内存的方式增长 data.frame
- ruby-on-rails - ruby/ruby on rails 内存泄漏检测
- android - 无法解析导入android.support.v7.app
- UNIX 域套接字与共享内存(映射文件)
在 git 中进行浅克隆时(使用 --depth
选项),根提交被标记为 grafted。
谷歌搜索没有找到任何令人满意的文档。
好像和git grafts没有关系,类似的术语暗示。
它只是一个标志,表明这个提交实际上有更多的 parent ,而不是“真正的”根提交吗?还是有什么特别之处?
最佳答案
来自您的链接:
It works by letting users record fake ancestry information for commits. This way you can make git pretend the set of parents a commit has is different from what was recorded when the commit was created.
在浅克隆中,您的根 提交是应该 有父项的提交,但不在您的存储库中。所以这似乎是一个很好的嫁接用例。
Def.: Shallow commits do have parents, but not in the shallowrepo, and therefore grafts are introduced pretending thatthese commits have no parents.
关于git - 浅克隆中的 "grafted"提交到底是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27296188/
当hg graft失败,它留下.hg/graftstate它发出嫁接命令,表明嫁接正在进行中并且可以继续。除了删除.hg/graftstate ,有没有更干净的方法来中止嫁接? 最佳答案 你要hg u
在 git 中进行浅克隆时(使用 --depth 选项),根提交被标记为 grafted。 谷歌搜索没有找到任何令人满意的文档。 好像和git grafts没有关系,类似的术语暗示。 它只是一个标志,
我使用 git replace --graft 来记录一个版本实际上是两个版本之间的(手动执行的) merge : git replace --graft 这对我的(本地、私有(private
我想弄清楚 Git 中的“嫁接”是什么。 例如,在最新评论之一here , Tobu 假设使用 git-filter-branch 和 .git/info/grafts 加入两个存储库。 但我不明白为
关于 git-filter-branch ,据说: To set a commit (which typically is at the tip of another history) to be t
因此我们创建了一个模板项目“template_proj.git”。 更新 git 版本是:Windows 7 prof 上的 2.14.1 我们有一些新的项目是空的,除了它们有一个带有 .gitign
关于 git grafts 与 replace 的问答很少。搜索 [git] +grafts +replace 只找到两个与 5 相关的。what-are-git-info-grafts-for和 g
我正在使用 Rails 4 并在尝试启动 Rails 控制台时收到此错误 undefined method `graft' for class `ActiveRecord::Associations:
我正在从 Subversion 过渡到 Mercurial,在 Subversion 中我习惯使用 svnmerge.py 来跟踪已 merge 或已被阻止 merge 的更改: # Mark cha
我是一名优秀的程序员,十分优秀!