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
6515850a
Unverified
Commit
6515850a
authored
Dec 28, 2021
by
Marc Cornellà
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(git-flow): add aliases for current `hotfix` branch
parent
7a38fa35
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
30 deletions
+41
-30
README.md
plugins/git-flow/README.md
+26
-17
git-flow.plugin.zsh
plugins/git-flow/git-flow.plugin.zsh
+15
-13
No files found.
plugins/git-flow/README.md
View file @
6515850a
...
...
@@ -11,21 +11,30 @@ plugins=(... git-flow)
## Aliases
| Alias | Command | Description |
|---------|----------------------------|----------------------------------------|
|
`gfl`
|
`git flow`
| Git-Flow command |
|
`gfli`
|
`git flow init`
| Initialize git-flow repository |
| --------- | ----------------------------------------- | ---------------------------------------------- |
|
`gcd`
|
`git checkout develop`
| Check out develop branch |
|
`gch`
|
`git checkout hotfix`
| Check out hotfix branch |
|
`gcr`
|
`git checkout release`
| Check out release branch |
|
`gfl`
|
`git flow`
| Git-Flow command |
|
`gflf`
|
`git flow feature`
| List existing feature branches |
|
`gflh`
|
`git flow hotfix`
| List existing hotfix branches |
|
`gflr`
|
`git flow release`
| List existing release branches |
|
`gflfs`
|
`git flow feature start`
| Start a new feature:
`gflfs <name>`
|
|
`gflhs`
|
`git flow hotfix start`
| Start a new hotfix:
`gflhs <version>`
|
|
`gflrs`
|
`git flow release start`
| Start a new release:
`gflrs <version>`
|
|
`gflff`
|
`git flow feature finish`
| Finish feature:
`gflff <name>`
|
|
`gflffc`
|
`gflff ${$(git_current_branch)#feature/}`
| Finish current feature |
|
`gflfp`
|
`git flow feature publish`
| Publish feature:
`gflfp <name>`
|
|
`gflfpc`
|
`gflfp ${$(git_current_branch)#feature/}`
| Publish current feature |
|
`gflfpll`
|
`git flow feature pull`
| Pull remote feature:
`gflfpll <remote> <name>`
|
|
`gflfs`
|
`git flow feature start`
| Start a new feature:
`gflfs <name>`
|
|
`gflh`
|
`git flow hotfix`
| List existing hotfix branches |
|
`gflhf`
|
`git flow hotfix finish`
| Finish hotfix:
`gflhf <version>`
|
|
`gflhfc`
|
`gflhf ${$(git_current_branch)#hotfix/}`
| Finish current hotfix |
|
`gflhp`
|
`git flow hotfix publish`
| Publish hostfix:
`gflhp <version>`
|
|
`gflhpc`
|
`gflhp ${$(git_current_branch)#hotfix/}`
| Finish current hotfix |
|
`gflhs`
|
`git flow hotfix start`
| Start a new hotfix:
`gflhs <version>`
|
|
`gfli`
|
`git flow init`
| Initialize git-flow repository |
|
`gflr`
|
`git flow release`
| List existing release branches |
|
`gflrf`
|
`git flow release finish`
| Finish release:
`gflrf <version>`
|
|
`gflrfc`
|
`gflrf ${$(git_current_branch)#release/}`
| Finish current release |
|
`gflrp`
|
`git flow release publish`
| Publish release:
`gflrp <version>`
|
|
`gflrpc`
|
`gflrp ${$(git_current_branch)#release/}`
| Publish current release |
|
`gflrs`
|
`git flow release start`
| Start a new release:
`gflrs <version>`
|
[
More information about `git-flow` commands
](
https://github.com/nvie/gitflow/wiki/Command-Line-Arguments
)
.
plugins/git-flow/git-flow.plugin.zsh
View file @
6515850a
# Aliases
alias
gfl
=
'git flow'
alias
gfli
=
'git flow init'
alias
gcd
=
'git checkout $(git config gitflow.branch.develop)'
alias
gch
=
'git checkout $(git config gitflow.prefix.hotfix)'
alias
gcr
=
'git checkout $(git config gitflow.prefix.release)'
alias
gfl
=
'git flow'
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
gflffc
=
'git flow feature finish ${$(git_current_branch)#feature/}'
alias
gflfp
=
'git flow feature publish'
alias
gflfpc
=
'git flow feature publish ${$(git_current_branch)#feature/}'
alias
gflfpll
=
'git flow feature pull'
alias
gflfs
=
'git flow feature start'
alias
gflh
=
'git flow hotfix'
alias
gflhf
=
'git flow hotfix finish'
alias
gfl
rf
=
'git flow release finish
'
alias
gfl
hfc
=
'git flow hotfix finish ${$(git_current_branch)#hotfix/}
'
alias
gflhp
=
'git flow hotfix publish'
alias
gflhpc
=
'git flow hotfix publish ${$(git_current_branch)#hotfix/}'
alias
gflhs
=
'git flow hotfix start'
alias
gfli
=
'git flow init'
alias
gflr
=
'git flow release'
alias
gflrf
=
'git flow release finish'
alias
gflrfc
=
'git flow release finish ${$(git_current_branch)#release/}'
alias
gflrp
=
'git flow release publish'
alias
gflfpll
=
'git flow feature pull'
alias
gflffc
=
'git flow feature finish $(echo $(current_branch) | cut -c 9-)'
alias
gflfpc
=
'git flow feature publish $(echo $(current_branch) | cut -c 9-)'
alias
gflrfc
=
'git flow release finish $(echo $(current_branch) | cut -c 9-)'
alias
gflrpc
=
'git flow release publish $(echo $(current_branch) | cut -c 9-)'
alias
gflrpc
=
'git flow release publish ${$(git_current_branch)#release/}'
alias
gflrs
=
'git flow release start'
# Source completion script
# Handle $0 according to the standard:
...
...
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