Commit 66179bda authored by Marc Cornellà's avatar Marc Cornellà Committed by GitHub
Browse files

Fix git-flow README

- Fix "installation" information
- Add links to github project
- Transform list of aliases into table with descriptions
parent 0615dfe3
# 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/*) ## Aliases
# 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) More information about `git-flow` commands:
https://github.com/nvie/gitflow/wiki/Command-Line-Arguments
source ~/.git-flow-completion.zsh
```
## Your new git-flow alias
```bash | Alias | Command | Description |
alias gfl='git flow' |---------|---------------------------|----------------------------------------|
alias gfli='git flow init' | `gfl` | `git flow` | Git-Flow command |
alias gcd='git checkout develop' | `gfli` | `git flow init` | Initialize git-flow repository |
alias gch='git checkout hotfix' | `gcd` | `git checkout develop` | Check out develop branch |
alias gcr='git checkout release' | `gch` | `git checkout hotfix` | Check out hotfix branch |
alias gflf='git flow feature' | `gcr` | `git checkout release` | Check out release branch |
alias gflh='git flow hotfix' | `gflf` | `git flow feature` | List existing feature branches |
alias gflr='git flow release' | `gflh` | `git flow hotfix` | List existing hotfix branches |
alias gflfs='git flow feature start' | `gflr` | `git flow release` | List existing release branches |
alias gflhs='git flow hotfix start' | `gflfs` | `git flow feature start` | Start a new feature: `gflfs <name>` |
alias gflrs='git flow release start' | `gflhs` | `git flow hotfix start` | Start a new hotfix: `gflhs <version>` |
alias gflff='git flow feature finish' | `gflrs` | `git flow release start` | Start a new release: `gflrs <version>` |
alias gflhf='git flow hotfix finish' | `gflff` | `git flow feature finish` | Finish feature: `gflff <name>` |
alias gflrf='git flow release finish' | `gflhf` | `git flow hotfix finish` | Finish hotfix: `gflhf <version>` |
``` | `gflrf` | `git flow release finish` | Finish release: `gflrf <version>` |
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment