feat(fzf): add command for git check out
This commit is contained in:
parent
7c34a6baf2
commit
60509de1bf
1 changed files with 7 additions and 0 deletions
|
|
@ -45,6 +45,13 @@ fshow() {
|
|||
done
|
||||
}
|
||||
|
||||
#
|
||||
# Checkout a git branch in a fzf context
|
||||
#
|
||||
fco() {
|
||||
git checkout "$(git branch -vl | fzf --layout=reverse | awk '{print $1}')"
|
||||
}
|
||||
|
||||
#
|
||||
# Interactive `git add` with FZF and diff preview support.
|
||||
#
|
||||
|
|
|
|||
Loading…
Reference in a new issue