嗨,我正试着用两个上游建立一个git-repo。
- The entire root-folder / goes to my repo at root /. (no problem)
- The subdir of this repo /templates should go under /woocommerce in my repo.
- I was able to achive that the /templates goes as only folder/tree in my repo by using a sparseCheckout.
- I try to use git-subtree to keep track of the commits.
当我使用git子树的时候。如何在/templates从我的上游到我的回购中的/woocommerce检查这些东西?
如果我的问题没有我所希望的那样直截了当,请给我一个暗示;)
发布于 2016-05-09 11:10:17
您应该将split和add组合起来。
因此,您克隆您想要的项目的一部分,然后在其中创建一个分支,其中将包含templates/。也就是说。
git subtree --prefix=templates/ split -b templates_only然后,您可以使用另一个回购的分支:
git subtree --prefix=woocommerce/ add ../woocommerce_clone/.git templates_onlyhttps://stackoverflow.com/questions/36894522
复制相似问题