Track all remote branches
Run the below in a git directory to track all remote Git branches.
for branch in `git branch -a | grep remotes | grep -v HEAD | grep -v master`; do; git branch --track ${branch##*/} $branch; done;
Written by adamstrawson
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
khasinski
591.1K
dmichaelavila
500.4K
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#