mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-18 16:45:38 -05:00
Fix checkout a commit command
@@ -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
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user