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:
Marty Oehme 2022-01-28 10:14:20 +01:00
parent 701c5bbcfc
commit 792e0b930a
Signed by: Marty
GPG Key ID: B7538B8F50A1C800
1 changed files with 1 additions and 1 deletions

View File

@ -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'