Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/soraliu/zsh-hub
Github hub zsh plugin for forking model
https://github.com/soraliu/zsh-hub
Last synced: about 1 month ago
JSON representation
Github hub zsh plugin for forking model
- Host: GitHub
- URL: https://github.com/soraliu/zsh-hub
- Owner: soraliu
- License: mit
- Created: 2020-05-20T00:52:52.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-07-12T22:55:19.000Z (almost 3 years ago)
- Last Synced: 2024-01-23T21:24:32.952Z (4 months ago)
- Language: Shell
- Homepage:
- Size: 19.5 KB
- Stars: 9
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-zsh-plugins - hub - ZSH plugin for forking model. (Plugins / ZSH on Windows)
- fucking-awesome-zsh-plugins - hub - ZSH plugin for forking model. (Plugins / ZSH on Windows)
- fucking-awesome-zsh-plugins - hub - ZSH plugin for forking model. (Plugins / ZSH on Windows)
- awesome-zsh-plugins - hub - ZSH plugin for forking model. (Plugins / ZSH on Windows)
README
# zsh-hub
Github hub zsh plugin
# Prerequisites
- [hub](https://github.com/github/hub)
# Installation
```bash
git clone https://github.com/soraliu/zsh-hub.git $ZSH_CUSTOM/plugins/zsh-hub
``````bash
# ~/.zshrcplugins=(
# ...
zsh-hub
# ...
)
```# Usage
## `grebase` (rebase)
Find the ancestor, and squash commit.
```bash
git fetch origin # upstream
grebase
```## `gupdate` (update issue)
Push to forked repo, and create a pull request.
```bash
# add label
gupdate -l lgtm
# asign to a user
gupdate -a username
```## `gpr` (pull request)
Push to forked repo, and create a pull request.
```bash
gpr
# show the pr in browser
gpr -s
```## `gct` (comment)
Comment the pr based on current branch
```bash
gct '/publish'# multiple lines
gct '/publish
/hold'
```## `gci` (ci-status)
Check the ci status of current pr
```bash
gci
```