A command line tool for using Backlog's git comfortably.
gitb
command helps to use Backlog's git comfortably. For example, can open PR, issue, branches, tags, etc in the browser with one action.
Also, gitb
wraps all git
commands, therefore can execute git-command
using gitb
like a gitb fetch
, gitb pull
, gitb push
, and more...
Suffix B has multiple meanings. Backlog, Browser, B-Dash.
Built binaries are available on Github releases:
https://github.com/vvatanabe/gitb/releases
This package can be installed with the go get command too:
$ go get github.com/vvatanabe/gitb
Related to Backlog Pull Requests for the current repository.
COMMANDS:
gitb pr [-s <STATE>]
Open the pull request list page in the current repository.
gitb pr show
Open the pull request page related to the current branch.
gitb pr add [-b <BASE>]
Open the page to create pull request with the current branch.
OPTIONS:
-s, --state <STATE>
Filter pull requests by STATE. Values: "open" (default), "closed", "merged", "all".
-b, --base <BASE>
BASE is base branch name. Default is empty.
Related to Backlog Issues for the current repository.
COMMANDS:
gitb issue [-s <STATE>]
Open the issue list page in the current project.
gitb issue show
Open the issue page related to the current branch.
gitb issue add
Open the page to create issue in the current project.
OPTIONS:
-s, --state <STATE>
Filter issues by STATE. Values: "all", "open", "in_progress", "resolved", "closed", "not_closed" (default).
Open other git page (e.g. branch, tree, tag, and more...) in current repository.
COMMANDS:
gitb browse branch
Open the branch list page in the current repository.
gitb browse tag
Open the tag list page in the current repository.
gitb browse tree
Open the tree page in the current branch.
gitb browse history
Open the history page in the current branch.
gitb browse network
Open the network page in the current branch.
gitb browse repo
Open the repository list page in the current project.
Please write an alias to .XXXrc (.bashrc, .zshrc, config.fish) if you want to use gitb <command>
as git <command>
.
eval "$(gitb alias -s)"
function git(){gitb "$@"}
function git
gitb $argv
end
Inspired by github.com/github/hub
For bugs, questions and discussions please use the GitHub Issues.