This commit is contained in:
fumseck 2016-08-16 16:18:27 +00:00 committed by GitHub
commit 70beb14455
2 changed files with 47 additions and 5 deletions

View file

@ -0,0 +1,18 @@
# Git flow plugin installation
```bash
git clone https://github.com/robbyrussell/oh-my-zsh.git
cp oh-my-zsh/plugins/git-flow/git-flow.plugin.zsh ~/.git-flow-completion.zsh
gedit ~/.zshrc
# 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
```

View file

@ -20,11 +20,35 @@
# c. Or, use this file as an oh-my-zsh plugin.
#
#Alias
alias gfl='git flow'
alias gcd='git checkout develop'
alias gch='git checkout hotfix'
alias gcr='git checkout release'
# Git flow alias
alias gfl='git flow'
alias gfli='git flow init'
alias gflv='git flow version'
# feature
alias gflf='git flow feature'
alias gflfs='git flow feature start'
alias gflff='git flow feature finish'
alias gflfd='git flow feature diff'
# develop
alias gcd='git checkout develop'
# hotfix
alias gflh='git flow hotfix'
alias gch='git checkout hotfix'
alias gflhs='git flow hotfix start'
alias gflhf='git flow hotfix finish'
alias gflhl='git flow hotfix list'
# release
alias gflr='git flow release'
alias gcr='git checkout release'
alias gflrs='git flow release start'
alias gflrf='git flow release finish'
alias gcr='git checkout release'
alias gflrp='git flow release publish'
alias gflrl='git flow release list'
_git-flow ()
{