$ git subtree split --rejoin --prefix=Dependencies/Cvte.Paint/ HEAD ---- 参考资料 git-subtree pull merge conflict - Stack Overflow git - Reduce increasing time to push a subtree - Stack Overflow git-subtree /git-subtree.txt at master · apenwarr/git-subtree 本文会经常更新,请阅读原文: https://walterlv.com/post/performance-of-git-subtree.html
split --prefix=<prefix> [OPTIONS] [<commit>] --prefix之后的=等号也可以用空格 在父仓库中新增子仓库 例:执行以下命令将git-submodule添加到git-subtree git-subtree-split: 709687c94ed74ae3ddff0daffdd9a9adb29e3eb0 执行git push即可 从源仓库拉取更新 如果git-submodule源仓库更新了,git-subtree $ git subtree push --prefix git-submodule git@github.com:sy-records/git-submodule.git master # 推送到 git-subtree
codex/github-subtrees-fb93d229cdc0 https://segmentfault.com/a/1190000012002151 https://tech.youzan.com/git-subtree / http://www.fwolf.com/blog/post/246 https://liuyufang.com/version-control/git/git-subtree https://www.worldhello.net