commit 38d429f85c3204330b44962fd57db8613783d81e Author: pi-ux-ce Date: Fri Jun 26 10:37:34 2026 +0000 Add README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..6a2fb76 --- /dev/null +++ b/README.md @@ -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' +``` \ No newline at end of file