Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
0615dfe3
"fs/vscode:/vscode.git/clone" did not exist on "c470ddd6791b8ba79089df2c13e5d661ef2eca63"
Commit
0615dfe3
authored
Aug 17, 2016
by
Fumseck
Committed by
Marc Cornellà
Aug 17, 2016
Browse files
Add alias and README to git-flow plugin (#5129)
parent
acd6a14a
Changes
2
Hide whitespace changes
Inline
Side-by-side
plugins/git-flow/README.md
0 → 100644
View file @
0615dfe3
# 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
vim ~/.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
```
## Your new git-flow alias
```
bash
alias
gfl
=
'git flow'
alias
gfli
=
'git flow init'
alias
gcd
=
'git checkout develop'
alias
gch
=
'git checkout hotfix'
alias
gcr
=
'git checkout release'
alias
gflf
=
'git flow feature'
alias
gflh
=
'git flow hotfix'
alias
gflr
=
'git flow release'
alias
gflfs
=
'git flow feature start'
alias
gflhs
=
'git flow hotfix start'
alias
gflrs
=
'git flow release start'
alias
gflff
=
'git flow feature finish'
alias
gflhf
=
'git flow hotfix finish'
alias
gflrf
=
'git flow release finish'
```
plugins/git-flow/git-flow.plugin.zsh
View file @
0615dfe3
...
@@ -22,9 +22,19 @@
...
@@ -22,9 +22,19 @@
#Alias
#Alias
alias
gfl
=
'git flow'
alias
gfl
=
'git flow'
alias
gfli
=
'git flow init'
alias
gcd
=
'git checkout develop'
alias
gcd
=
'git checkout develop'
alias
gch
=
'git checkout hotfix'
alias
gch
=
'git checkout hotfix'
alias
gcr
=
'git checkout release'
alias
gcr
=
'git checkout release'
alias
gflf
=
'git flow feature'
alias
gflh
=
'git flow hotfix'
alias
gflr
=
'git flow release'
alias
gflfs
=
'git flow feature start'
alias
gflhs
=
'git flow hotfix start'
alias
gflrs
=
'git flow release start'
alias
gflff
=
'git flow feature finish'
alias
gflhf
=
'git flow hotfix finish'
alias
gflrf
=
'git flow release finish'
_git-flow
()
_git-flow
()
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment