Skip to content

Instantly share code, notes, and snippets.

View baitando's full-sized avatar

Andreas Rehmann baitando

View GitHub Profile
@baitando
baitando / git checkout-all-branches.sh
Created September 15, 2019 08:58
git checkout-all-branches
#!/bin/bash
#Whenever you clone a repo, you do not clone all of its branches by default.
#If you wish to do so, use the following script:
for branch in `git branch -a | grep remotes | grep -v HEAD | grep -v master `; do
git branch --track ${branch#remotes/origin/} $branch
done

Keybase proof

I hereby claim:

  • I am baitando on github.
  • I am baitando (https://keybase.io/baitando) on keybase.
  • I have a public key ASBE6LGOrZjhp8hHbtoePT26cdkLuJ-sEYC7yf_KeqW1nAo

To claim this, I am signing this object: