Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@chrisdothtml/not-subtree

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chrisdothtml/not-subtree

git subtrees without `git subtree`

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 12 Mar 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc