#!/bin/sh # https://stackoverflow.com/questions/10312521/how-to-fetch-all-git-branches # TBD: Compare with 'git-clone-all' in this directory. git branch -r | grep -v '\->' | while read REMOTE; do git branch --track "${REMOTE#origin/}" "${REMOTE}"; done git fetch --all git pull --all