Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
0615dfe3
Commit
0615dfe3
authored
Aug 17, 2016
by
Fumseck
Committed by
Marc Cornellà
Aug 17, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add alias and README to git-flow plugin (#5129)
parent
acd6a14a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
0 deletions
+46
-0
README.md
plugins/git-flow/README.md
+36
-0
git-flow.plugin.zsh
plugins/git-flow/git-flow.plugin.zsh
+10
-0
No files found.
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