mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-19 00:53:42 -05:00
Updated Examples (markdown)
@@ -120,6 +120,14 @@ fbr() {
|
||||
branch=$(echo "$branches" | fzf +m) &&
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user