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

Add fcoc

Jamie Schembri
2016-10-30 11:04:56 +01:00
parent b03263718c
commit a83469fef3

@@ -7,6 +7,10 @@ Examples for fish shell
function fco -d "Fuzzy-find and checkout a branch" function fco -d "Fuzzy-find and checkout a branch"
git branch --all | grep -v HEAD | string trim | fzf | xargs git checkout git branch --all | grep -v HEAD | string trim | fzf | xargs git checkout
end end
function fcoc -d "Fuzzy-find and checkout a commit"
git log --pretty=oneline --abbrev-commit --reverse | fzf +s | xargs git checkout
end
``` ```
### SSH ### SSH