git-upstream
v1.0.4
Published
Utility to set the remote "upstream" on forked repository
Downloads
9
Readme
git-upstream
Utility to set the remote "upstream" on forked repository.
Usage
Options:
--help Show help [boolean]
--version Show version number [boolean]
--set, -i Set upstream to a remote [boolean] [default: false]
--force, -f Force overwrite even if upstream already exists
[boolean] [default: false]
--token, -t GitHub access token for private repository [string]
--shallow Prefer parent fork(default) or ancestor fork
[boolean] [default: true]
--https Set https url to remote, otherwise set ssh url
[boolean] [default: false]
Examples:
npx git-upstream Show upstream url
npx git-upstream --set Set upstream with confirmation
npx git-upstream --set -f Set upstream even if upstream already
exists
npx git-upstream --set --https Set https://...
npx git-upstream --set --no-shallow For deep nested fork
Contribution
- Fork this repository
- Write your code
- Run tests
- Create pull request to master branch
Development
git clone [email protected]:Leko/git-upstream.git
cd git-upstream
npm i
License
This package under MIT license.