From 38d429f85c3204330b44962fd57db8613783d81e Mon Sep 17 00:00:00 2001 From: pi-ux-ce Date: Fri, 26 Jun 2026 10:37:34 +0000 Subject: [PATCH] Add README.md --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 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