https://github.com/chrisdothtml/not-subtree
git "subtrees" without `git subtree`
https://github.com/chrisdothtml/not-subtree
Last synced: 5 months ago
JSON representation
git "subtrees" without `git subtree`
- Host: GitHub
- URL: https://github.com/chrisdothtml/not-subtree
- Owner: chrisdothtml
- License: mit
- Created: 2019-03-08T02:03:13.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-07-16T19:37:33.000Z (almost 6 years ago)
- Last Synced: 2025-10-24T20:11:42.382Z (8 months ago)
- Language: JavaScript
- Size: 104 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# not-subtree
> git "subtrees" without `git subtree`
## Install
```sh
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](LICENSE)