node-gh
Github command line tools helps you improve using Git and Github from the terminal.
Usage
gh [command] [payload] [--flags]
Install
npm install -g gh
Available commands
Pull requests
Listing
gh pr --list
```
gh pr --list --all
```
gh pr --list --branch master
```
Fetching
gh pr --pull 1 --fetch --branch new_branch
```
gh pr --pull 1 --fetch --rebase [--branch master]
gh pr --pull 1 --fetch --merge [--branch master]
```
Merging or rebasing
gh pr --merge [--pull 1] [--branch master]
```
```
gh pr --rebase [--pull 1] [--branch master]
```
- Omitting
--pull
will try to guess the pull number from branch name e.g. pull-1
results in --pull 1
. - Omitting
--branch
will merge or rebase into config.defaultbranch
.
gh pr --pull 1 --comment "Merged, thank you!".
```
Forwarding
gh pr --pull 1 --fwd username
```
Open and close
gh pr --pull 1 --open
```
```
gh pr --pull 1 --close
```
Submiting
gh pr --submit eduardolundgren
```
Notification
gh nt --latest
```
gh nt --watch
```
Team
History
- v0.0.7 May 24, 2013
- Add pull request forward command
- Add Travis continous integration with JSHint
- Create a new website under gh-pages branch
- Update dependency version: git-wrapper@0.1.1
- Add Hello World and Notification tasks
- v0.0.6 May 17, 2013
- Add hability to merge or rebase pull request
- Add base.getUser and git.merge helpers
- v0.0.5 May 16, 2013
- Add login to be invoked by default in series
- v0.0.4 May 16, 2013
- Create ~/.gh.json if needed
- v0.0.3 May 16, 2013
- Merge user ~/.gh.json with default .gh.json
- Add default .gh.json
- Fix bin path
- v0.0.2 May 16, 2013
- Add fetch, open/close, comment
- Use moment humanize utility
- v0.0.1 May 14, 2013
License
BSD License