diff --git a/.bash_aliases b/.bash_aliases index 00c3092..560703f 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -139,10 +139,12 @@ gitf () { if git show-ref --verify --quiet refs/heads/"$branch"; then git checkout $branch + gitf return 0 fi git checkout -b $branch + gitf ;; # Clear local branches that have no upstream on remote (cleanup)