@-0/utils 中文文档教程

发布于 3年前 浏览 22 项目主页 更新于 3年前

git subtree push --prefix=my/folder subtree_origin master

哪里:

  • --prefix=my/folder is the folder within your supertree that you want to push to the subtree
  • master is the branch in the subtree,
  • subtree_origin is just another remote, which happens to point to your subtree's git repository. You can also type the full repo URL.
git subtree pull --prefix=my/folder subtree_origin master

哪里:

  • pull is the inverse of push (consume from subtree rather than produce to subtree)
  • --prefix=my/folder is the folder/directory you want to pull the subtree into
  • subtree (remote)
  • master (branch)

工作流程:

  • all control is handled in the supertree
  • use git remote add <subtree_origin> for cleaner git commands from supertree
  • subtrees work independently and are consumed from/produced to from supertree

更多信息

git subtree push --prefix=my/folder subtree_origin master

Where:

  • --prefix=my/folder is the folder within your supertree that you want to push to the subtree
  • master is the branch in the subtree,
  • subtree_origin is just another remote, which happens to point to your subtree's git repository. You can also type the full repo URL.
git subtree pull --prefix=my/folder subtree_origin master

Where:

  • pull is the inverse of push (consume from subtree rather than produce to subtree)
  • --prefix=my/folder is the folder/directory you want to pull the subtree into
  • subtree (remote)
  • master (branch)

Workflow:

  • all control is handled in the supertree
  • use git remote add <subtree_origin> for cleaner git commands from supertree
  • subtrees work independently and are consumed from/produced to from supertree

more info

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文