1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-22 05:40:08 +00:00

Fix git-flow README

- Fix "installation" information
- Add links to github project
- Transform list of aliases into table with descriptions
This commit is contained in:
Marc Cornellà 2016-08-17 22:39:41 +02:00 committed by GitHub
parent 0615dfe32c
commit 66179bdab8

View file

@ -1,36 +1,31 @@
# Git flow plugin installation # Git-Flow plugin
```bash This plugin adds completion and aliases for the `git-flow` command. More information
git clone https://github.com/robbyrussell/oh-my-zsh.git at https://github.com/nvie/gitflow.
cp oh-my-zsh/plugins/git-flow/git-flow.plugin.zsh ~/.git-flow-completion.zsh Enable git-flow plugin in your zshrc file:
```
vim ~/.zshrc plugins=(... git-flow)
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(git git-flow)
source ~/.git-flow-completion.zsh
``` ```
## Your new git-flow alias
```bash ## Aliases
alias gfl='git flow'
alias gfli='git flow init' More information about `git-flow` commands:
alias gcd='git checkout develop' https://github.com/nvie/gitflow/wiki/Command-Line-Arguments
alias gch='git checkout hotfix'
alias gcr='git checkout release' | Alias | Command | Description |
alias gflf='git flow feature' |---------|---------------------------|----------------------------------------|
alias gflh='git flow hotfix' | `gfl` | `git flow` | Git-Flow command |
alias gflr='git flow release' | `gfli` | `git flow init` | Initialize git-flow repository |
alias gflfs='git flow feature start' | `gcd` | `git checkout develop` | Check out develop branch |
alias gflhs='git flow hotfix start' | `gch` | `git checkout hotfix` | Check out hotfix branch |
alias gflrs='git flow release start' | `gcr` | `git checkout release` | Check out release branch |
alias gflff='git flow feature finish' | `gflf` | `git flow feature` | List existing feature branches |
alias gflhf='git flow hotfix finish' | `gflh` | `git flow hotfix` | List existing hotfix branches |
alias gflrf='git flow release finish' | `gflr` | `git flow release` | List existing release branches |
``` | `gflfs` | `git flow feature start` | Start a new feature: `gflfs <name>` |
| `gflhs` | `git flow hotfix start` | Start a new hotfix: `gflhs <version>` |
| `gflrs` | `git flow release start` | Start a new release: `gflrs <version>` |
| `gflff` | `git flow feature finish` | Finish feature: `gflff <name>` |
| `gflhf` | `git flow hotfix finish` | Finish hotfix: `gflhf <version>` |
| `gflrf` | `git flow release finish` | Finish release: `gflrf <version>` |