mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-19 09:03:43 -05:00
Updated Examples (markdown)
@@ -120,6 +120,14 @@ fbr() {
|
|||||||
branch=$(echo "$branches" | fzf +m) &&
|
branch=$(echo "$branches" | fzf +m) &&
|
||||||
git checkout $(echo "$branch" | sed "s/.* //")
|
git checkout $(echo "$branch" | sed "s/.* //")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# fbr - checkout git branch (including remote branches)
|
||||||
|
fbr() {
|
||||||
|
local branches branch
|
||||||
|
branches=$(git branch --all | grep -v HEAD) &&
|
||||||
|
branch=$(echo "$branches" | fzf-tmux -h 15 +m) &&
|
||||||
|
git checkout $(echo "$branch" | sed "s/.* //" | sed "s#remotes/[^/]*/##")
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
|||||||
Reference in New Issue
Block a user