@chrisdothtml/not-subtree

0.0.2 • Public • Published

not-subtree

git "subtrees" without git subtree

Install

npm i -g @chrisdothtml/not-subtree

Use

not-subtree add

Description
  Add new subtree from an external repo

Usage
  $ not-subtree add [options]

Options
  -p, --path       [required] Sub-path to add new subtree to
  -r, --remote     [required] External repo git remote url
  -b, --branch     External repo branch to use
  -m, --message    Commit message
  -h, --help       Displays this message

Examples
  $ not-subtree add -p bar -r git@github.com:foo/bar.git

not-subtree pull

Description
  Pull external repo's changed files between --base-branch and --head-branch

Usage
  $ not-subtree pull [options]

Options
  -p, --path       [required] Sub-path to pull subtree into
  -r, --remote     [required] External repo git remote url
  --head-branch    [required]
  --base-branch    (default: master)
  -m, --message    Commit message
  -h, --help       Displays this message

Examples
  $ not-subtree pull -p bar -r git@github.com:foo/bar.git --head-branch feature/foo
  $ not-subtree pull -p bar -r git@github.com:foo/bar.git --base-branch develop --head-branch feature/foo

not-subtree push

Description
  Push changed files between --base-branch and current branch into --remote-branch of external repo

Usage
  $ not-subtree push [options]

Options
  -p, --path         [required] Sub-path to pull subtree into
  -r, --remote       [required] External repo git remote url
  --base-branch      (default: master)
  --remote-branch    (default: current branch name)
  -m, --message      Commit message
  -h, --help         Displays this message

Examples
  $ not-subtree push -p bar -r git@github.com:foo/bar.git
  $ not-subtree push -p bar -r git@github.com:foo/bar.git --remote-branch develop

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @chrisdothtml/not-subtree

Weekly Downloads

0

Version

0.0.2

License

none

Unpacked Size

80.5 kB

Total Files

11

Last publish

Collaborators

  • chrisdothtml