Fuzzy git checkout
/ 2 min read
I find it a bit laborious to have to find, copy and then checkout my git branch all the time so I decided to write a little bash script to help me do it.
Here it is in action:
First, I created a function that allows me to use fzf to fuzzy find the branch:
I then use this function to select a branch inside a number of other functions which use the chosen branch to checkout, copy or delete the chosen branch. To make life easier I have these assigned to aliases e.g. gcof
for fuzzy git checkout:
Hope it helps