4 lines
198 B
Fish
4 lines
198 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
|