Miss any of our Open RFC calls?Watch the recordings here! »

@-0/utils

0.2.68 • Public • Published
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

Install

npm i @-0/utils

DownloadsWeekly Downloads

99

Version

0.2.68

License

MIT

Unpacked Size

10.6 kB

Total Files

17

Last publish

Collaborators

  • avatar