12 lines
499 B
Markdown
12 lines
499 B
Markdown
#Linux_config
|
|
|
|
## Bash command
|
|
### select branches I created
|
|
```
|
|
alias mybranches_old='git for-each-ref --format="%(authorname) %09 %(refname:short)" --sort=authorname | grep "$(git config user.name)"'
|
|
```
|
|
### select branches I created + selection mode
|
|
|
|
```
|
|
alias mybranches='git for-each-ref --format="%(authorname) %09 %(refname:short)" --sort=authorname | grep "$(git config user.name)" | fzf -m --header "Tab to select multiple, Enter to checkout" | awk "{print \$2}" | xargs git checkout'
|
|
``` |