Skip to content

Latest commit

 

History

History
75 lines (51 loc) · 860 Bytes

README.md

File metadata and controls

75 lines (51 loc) · 860 Bytes

zsh-hub

Github hub zsh plugin

Prerequisites

Installation

git clone https://github.com/soraliu/zsh-hub.git $ZSH_CUSTOM/plugins/zsh-hub
# ~/.zshrc

plugins=(
  # ...
  zsh-hub
  # ...
)

Usage

grebase (rebase)

Find the ancestor, and squash commit.

git fetch origin # upstream
grebase

gupdate (update issue)

Push to forked repo, and create a pull request.

# add label
gupdate -l lgtm
# asign to a user
gupdate -a username

gpr (pull request)

Push to forked repo, and create a pull request.

gpr
# show the pr in browser
gpr -s

gct (comment)

Comment the pr based on current branch

gct '/publish'

# multiple lines
gct '/publish
/hold'

gci (ci-status)

Check the ci status of current pr

gci