From e9b1bd79dac72109e5a0e0514910b067c7ef0571 Mon Sep 17 00:00:00 2001 From: Nathan Knowler Date: Wed, 17 Nov 2021 06:30:50 -0600 Subject: [PATCH] [limb] include remote branches --- .local/bin/limb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/limb b/.local/bin/limb index 7d8eee7..cd65a19 100755 --- a/.local/bin/limb +++ b/.local/bin/limb @@ -1,3 +1,3 @@ #!/usr/bin/env bash -git checkout $(git branch --format="%(refname:lstrip=2)" | fzf --select-1 --query "$1") +git checkout $(git branch --all --format="%(if)%(upstream)%(then)%(refname:lstrip=2)%(else)%(refname:short)%(end)" | sed -E 's/^origin\///g' | fzf --select-1 --query "$1") -- 2.51.2