# Search through branch names and checkout the first one that matches
alias gfc='_gfc(){ git branch -a | grep -m1 "$1" | sed "s/^\*.//g" | sed "s/remotes\/origin\///" | xargs git checkout; }; _gfc'
# Search through branch names and checkout the first one that matches
alias gfc='_gfc(){ git branch -a | grep -m1 "$1" | sed "s/^\*.//g" | sed "s/remotes\/origin\///" | xargs git checkout; }; _gfc'
Comments