dotfiles/fish/.config/fish/functions/fcoc.fish

4 lines
200 B
Fish

function fcoc --description 'Checkout a commit using fzf'
git log --pretty=oneline --abbrev-commit --reverse | fzf --tac +s -e | awk '{print $1;}' | read -l result; and git checkout "$result"
end