Skip to content

Instantly share code, notes, and snippets.

View lfkdsk's full-sized avatar
🐶
Focusing

lfkdsk lfkdsk

🐶
Focusing
View GitHub Profile
@wilmarvh
wilmarvh / git checkout-all-branches.sh
Created April 22, 2019 20:11
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