git: Development checkout also switched to Staging
Using the `gcd` alias to checkout the development branch switches to, if no `development` branch is found, the `staging` branch of a repository automatically instead.
This commit is contained in:
parent
701c5bbcfc
commit
792e0b930a
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ alias gcn!='git commit -v --no-edit --amend'
|
|||
|
||||
if version_at_least 2.23 "$git_version"; then
|
||||
alias gcm='git switch master 2>/dev/null || git switch main'
|
||||
alias gcd='git switch develop'
|
||||
alias gcd='git switch develop 2>/dev/null || git switch staging'
|
||||
alias gcb='git switch -c'
|
||||
else
|
||||
alias gcm='git checkout master 2>/dev/null || git checkout main'
|
||||
|
|
Loading…
Reference in a new issue