From ef66ce6ff4eda2a8c3991eb8c50bfa430a7c1590 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Tue, 2 Aug 2016 15:01:37 -0400 Subject: [PATCH] Adds fuzzy git checkout command --- .git_functions.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.git_functions.sh b/.git_functions.sh index 16162f019..142be519e 100644 --- a/.git_functions.sh +++ b/.git_functions.sh @@ -49,6 +49,12 @@ function wgcheckout { } +# wgcheckout combined with a fuzzy search +function wgfcheckout { + wgcheckout $(git branch | fzf) +} + + # combine fetch and rebase (git frebase) function wgfreebase { if [ -z $1 ]; then