Add README.md
This commit is contained in:
@@ -0,0 +1,12 @@
|
|||||||
|
#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'
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user