Skip to content
A command line tool for using Backlog's git comfortably.
Go Makefile Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
snap
.gitignore
.travis.yml
CHANGELOG.md
LICENSE
Makefile
README.ja.md
README.md
builder.go
builder_test.go
bump
cmd.go
go.mod
go.sum
main.go
repository.go
repository_mock.go
repository_test.go
version.go

README.md

gitb Build Status Coverage Status

A command line tool for using Backlog's git comfortably.

Description

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.

Installation

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

Usage

Pull Request

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.

Issue

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).

Browse

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.

Alias

Please write an alias to .XXXrc (.bashrc, .zshrc, config.fish) if you want to use gitb <command> as git <command>.

Bash

eval "$(gitb alias -s)"

Zsh

function git(){gitb "$@"}

Fish

function git
  gitb $argv
end

Acknowledgments

Inspired by github.com/github/hub

Bugs and Feedback

For bugs, questions and discussions please use the GitHub Issues.

License

MIT License

Author

vvatanabe

You can’t perform that action at this time.