3 lines
200 B
Fish
3 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
|