Add alias git checkout-all and git coa ...

... to fetch all branches from a git origin
This commit is contained in:
Alexander Hess 2024-12-12 15:54:49 +01:00
parent 4a82476f77
commit b71714856f
Signed by: alexander
GPG key ID: 344EA5AB10D868E0

View file

@ -14,7 +14,9 @@ cf = cat-file
ci = commit ci = commit
cim = commit --message cim = commit --message
cl = clone 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 co = checkout
coa = checkout-all
cob = checkout -b cob = checkout -b
cod = checkout develop cod = checkout develop
com = checkout master com = checkout master