mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-18 10:22:00 +00:00
feat(git-flow): add aliases for current hotfix
branch
This commit is contained in:
parent
7a38fa35c4
commit
6515850a14
2 changed files with 43 additions and 32 deletions
|
@ -10,22 +10,31 @@ plugins=(... git-flow)
|
||||||
|
|
||||||
## Aliases
|
## Aliases
|
||||||
|
|
||||||
| Alias | Command | Description |
|
| Alias | Command | Description |
|
||||||
|---------|----------------------------|----------------------------------------|
|
| --------- | ----------------------------------------- | ---------------------------------------------- |
|
||||||
| `gfl` | `git flow` | Git-Flow command |
|
| `gcd` | `git checkout develop` | Check out develop branch |
|
||||||
| `gfli` | `git flow init` | Initialize git-flow repository |
|
| `gch` | `git checkout hotfix` | Check out hotfix branch |
|
||||||
| `gcd` | `git checkout develop` | Check out develop branch |
|
| `gcr` | `git checkout release` | Check out release branch |
|
||||||
| `gch` | `git checkout hotfix` | Check out hotfix branch |
|
| `gfl` | `git flow` | Git-Flow command |
|
||||||
| `gcr` | `git checkout release` | Check out release branch |
|
| `gflf` | `git flow feature` | List existing feature branches |
|
||||||
| `gflf` | `git flow feature` | List existing feature branches |
|
| `gflff` | `git flow feature finish` | Finish feature: `gflff <name>` |
|
||||||
| `gflh` | `git flow hotfix` | List existing hotfix branches |
|
| `gflffc` | `gflff ${$(git_current_branch)#feature/}` | Finish current feature |
|
||||||
| `gflr` | `git flow release` | List existing release branches |
|
| `gflfp` | `git flow feature publish` | Publish feature: `gflfp <name>` |
|
||||||
| `gflfs` | `git flow feature start` | Start a new feature: `gflfs <name>` |
|
| `gflfpc` | `gflfp ${$(git_current_branch)#feature/}` | Publish current feature |
|
||||||
| `gflhs` | `git flow hotfix start` | Start a new hotfix: `gflhs <version>` |
|
| `gflfpll` | `git flow feature pull` | Pull remote feature: `gflfpll <remote> <name>` |
|
||||||
| `gflrs` | `git flow release start` | Start a new release: `gflrs <version>` |
|
| `gflfs` | `git flow feature start` | Start a new feature: `gflfs <name>` |
|
||||||
| `gflff` | `git flow feature finish` | Finish feature: `gflff <name>` |
|
| `gflh` | `git flow hotfix` | List existing hotfix branches |
|
||||||
| `gflfp` | `git flow feature publish` | Publish feature: `gflfp <name>` |
|
| `gflhf` | `git flow hotfix finish` | Finish hotfix: `gflhf <version>` |
|
||||||
| `gflhf` | `git flow hotfix finish` | Finish hotfix: `gflhf <version>` |
|
| `gflhfc` | `gflhf ${$(git_current_branch)#hotfix/}` | Finish current hotfix |
|
||||||
| `gflrf` | `git flow release finish` | Finish release: `gflrf <version>` |
|
| `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).
|
[More information about `git-flow` commands](https://github.com/nvie/gitflow/wiki/Command-Line-Arguments).
|
||||||
|
|
|
@ -1,26 +1,28 @@
|
||||||
# Aliases
|
# Aliases
|
||||||
alias gfl='git flow'
|
|
||||||
alias gfli='git flow init'
|
|
||||||
alias gcd='git checkout $(git config gitflow.branch.develop)'
|
alias gcd='git checkout $(git config gitflow.branch.develop)'
|
||||||
alias gch='git checkout $(git config gitflow.prefix.hotfix)'
|
alias gch='git checkout $(git config gitflow.prefix.hotfix)'
|
||||||
alias gcr='git checkout $(git config gitflow.prefix.release)'
|
alias gcr='git checkout $(git config gitflow.prefix.release)'
|
||||||
|
alias gfl='git flow'
|
||||||
alias gflf='git flow feature'
|
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 gflff='git flow feature finish'
|
||||||
|
alias gflffc='git flow feature finish ${$(git_current_branch)#feature/}'
|
||||||
alias gflfp='git flow feature publish'
|
alias gflfp='git flow feature publish'
|
||||||
alias gflhf='git flow hotfix finish'
|
alias gflfpc='git flow feature publish ${$(git_current_branch)#feature/}'
|
||||||
alias gflrf='git flow release finish'
|
|
||||||
alias gflhp='git flow hotfix publish'
|
|
||||||
alias gflrp='git flow release publish'
|
|
||||||
alias gflfpll='git flow feature pull'
|
alias gflfpll='git flow feature pull'
|
||||||
alias gflffc='git flow feature finish $(echo $(current_branch) | cut -c 9-)'
|
alias gflfs='git flow feature start'
|
||||||
alias gflfpc='git flow feature publish $(echo $(current_branch) | cut -c 9-)'
|
alias gflh='git flow hotfix'
|
||||||
alias gflrfc='git flow release finish $(echo $(current_branch) | cut -c 9-)'
|
alias gflhf='git flow hotfix finish'
|
||||||
alias gflrpc='git flow release publish $(echo $(current_branch) | cut -c 9-)'
|
alias gflhfc='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 gflrpc='git flow release publish ${$(git_current_branch)#release/}'
|
||||||
|
alias gflrs='git flow release start'
|
||||||
|
|
||||||
# Source completion script
|
# Source completion script
|
||||||
# Handle $0 according to the standard:
|
# Handle $0 according to the standard:
|
||||||
|
|
Loading…
Reference in a new issue