0615dfe32c93bd5c7b78631d383edc9eb9db47d4
- Author
- Fumseck <fumseckworld@users.noreply.github.com>
- Committer
- Marc Cornellà <marc.cornella@live.com>
- Date
Message
Add alias and README to git-flow plugin (#5129)
Diff
1diff --git a/plugins/git-flow/README.md b/plugins/git-flow/README.md
2new file mode 100644
3index 0000000000000000000000000000000000000000..d4cde34aa916be272b32be6dca887aa7c23382f0
4--- /dev/null
5+++ b/plugins/git-flow/README.md
6@@ -0,0 +1,36 @@
7+# Git flow plugin installation
8+
9+```bash
10+git clone https://github.com/robbyrussell/oh-my-zsh.git
11+
12+cp oh-my-zsh/plugins/git-flow/git-flow.plugin.zsh ~/.git-flow-completion.zsh
13+
14+vim ~/.zshrc
15+
16+# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
17+# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
18+# Example format: plugins=(rails git textmate ruby lighthouse)
19+# Add wisely, as too many plugins slow down shell startup.
20+
21+plugins=(git git-flow)
22+
23+source ~/.git-flow-completion.zsh
24+```
25+## Your new git-flow alias
26+
27+```bash
28+alias gfl='git flow'
29+alias gfli='git flow init'
30+alias gcd='git checkout develop'
31+alias gch='git checkout hotfix'
32+alias gcr='git checkout release'
33+alias gflf='git flow feature'
34+alias gflh='git flow hotfix'
35+alias gflr='git flow release'
36+alias gflfs='git flow feature start'
37+alias gflhs='git flow hotfix start'
38+alias gflrs='git flow release start'
39+alias gflff='git flow feature finish'
40+alias gflhf='git flow hotfix finish'
41+alias gflrf='git flow release finish'
42+```
43diff --git a/plugins/git-flow/git-flow.plugin.zsh b/plugins/git-flow/git-flow.plugin.zsh
44index a8386cb19a115fec5ccd81f0fcaba2cfbb3f3eef..bda050725e91892fe062bd656fa7f095a963ca38 100644
45--- a/plugins/git-flow/git-flow.plugin.zsh
46+++ b/plugins/git-flow/git-flow.plugin.zsh
47@@ -22,9 +22,19 @@
48
49 #Alias
50 alias gfl='git flow'
51+alias gfli='git flow init'
52 alias gcd='git checkout develop'
53 alias gch='git checkout hotfix'
54 alias gcr='git checkout release'
55+alias gflf='git flow feature'
56+alias gflh='git flow hotfix'
57+alias gflr='git flow release'
58+alias gflfs='git flow feature start'
59+alias gflhs='git flow hotfix start'
60+alias gflrs='git flow release start'
61+alias gflff='git flow feature finish'
62+alias gflhf='git flow hotfix finish'
63+alias gflrf='git flow release finish'
64
65 _git-flow ()
66 {