mirror of
https://codeberg.org/vlw/dotfiles.git
synced 2025-11-05 09:22:42 +01:00
feat(bash): run gitf after gitf b
This commit is contained in:
parent
2591347cd3
commit
683acefc2d
1 changed files with 2 additions and 0 deletions
|
|
@ -139,10 +139,12 @@ gitf () {
|
||||||
|
|
||||||
if git show-ref --verify --quiet refs/heads/"$branch"; then
|
if git show-ref --verify --quiet refs/heads/"$branch"; then
|
||||||
git checkout $branch
|
git checkout $branch
|
||||||
|
gitf
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
git checkout -b $branch
|
git checkout -b $branch
|
||||||
|
gitf
|
||||||
;;
|
;;
|
||||||
|
|
||||||
# Clear local branches that have no upstream on remote (cleanup)
|
# Clear local branches that have no upstream on remote (cleanup)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue