mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-20 09:33:42 -05:00
I found super useful to see what the latest commit for a branch is, because it helps me better identify it, that's what -vv does. Hope it helps
@@ -233,7 +233,7 @@ fkill() {
|
|||||||
# fbr - checkout git branch
|
# fbr - checkout git branch
|
||||||
fbr() {
|
fbr() {
|
||||||
local branches branch
|
local branches branch
|
||||||
branches=$(git branch) &&
|
branches=$(git branch -vv) &&
|
||||||
branch=$(echo "$branches" | fzf +m) &&
|
branch=$(echo "$branches" | fzf +m) &&
|
||||||
git checkout $(echo "$branch" | sed "s/.* //")
|
git checkout $(echo "$branch" | sed "s/.* //")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user