Skip to content

Instantly share code, notes, and snippets.

@Jonas92
Jonas92 / track-branches.sh
Created June 6, 2019 00:32 — forked from carlowens/track-branches.sh
track all remote branches from github
#!/bin/bash
echo "Tracking all remote branches"
for remote in `git branch -r | sed "s/origin\///g"`;
do git branch --track $remote origin/$remote;
done