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

4 lines
200 B
Fish
Raw Normal View History

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