m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-18 16:45:38 -05:00

Fix checkout a commit command

Kirill Sukhanov
2017-03-27 15:46:02 -04:00
parent ed0f40e3e3
commit 5f851feedb

@@ -81,7 +81,7 @@ function fco -d "Fuzzy-find and checkout a branch"
end
function fcoc -d "Fuzzy-find and checkout a commit"
git log --pretty=oneline --abbrev-commit --reverse | fzf +s | xargs git checkout
git log --pretty=oneline --abbrev-commit --reverse | fzf --tac +s -e | awk '{print $1;}' | xargs git checkout
end
```