Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 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'
Advertisement
Add Comment
Please, Sign In to add comment