From b71714856f733827aeef81a82a86155d2d5a4c5c Mon Sep 17 00:00:00 2001 From: Alexander Hess Date: Thu, 12 Dec 2024 15:54:49 +0100 Subject: [PATCH] Add alias `git checkout-all` and `git coa` ... ... to fetch all branches from a git origin --- .config/git/config | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.config/git/config b/.config/git/config index 5823c03..93fbdef 100644 --- a/.config/git/config +++ b/.config/git/config @@ -14,7 +14,9 @@ cf = cat-file ci = commit cim = commit --message cl = clone +checkout-all = "!f() { for branch in $(git branch -r | grep -v '\\->'); do git branch --track ${branch#origin/} $branch; done; git fetch --all; }; f" co = checkout +coa = checkout-all cob = checkout -b cod = checkout develop com = checkout master