@-0/utils 中文文档教程
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 subtreemaster
is the branch in thesubtree
,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 ofpush
(consume from subtree rather than produce to subtree)--prefix=my/folder
is the folder/directory you want to pull the subtree intosubtree
(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 subtreemaster
is the branch in thesubtree
,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 ofpush
(consume from subtree rather than produce to subtree)--prefix=my/folder
is the folder/directory you want to pull the subtree intosubtree
(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
更多
你可能也喜欢
- @50centnetwork/quickswap-sdk 中文文档教程
- @7aki-cli/core 中文文档教程
- @abcnews/tiny-ducks 中文文档教程
- @abeai/http-codes 中文文档教程
- @ablanc/crunchyroll 中文文档教程
- @acala-network/acala-transfers-subql 中文文档教程
- @accounts/database-manager 中文文档教程
- @acknow-srl/ack6-lib 中文文档教程
- @acoustic-content-sdk/tooling-fonts 中文文档教程
- @acpaas-ui/web-components 中文文档教程