Fetch all branches & tags from remote git repository
Sometimes we need to have a FULL copy of remote git repository and this small script can really help.
#!/bin/bash
for branch in `git branch -r | grep -v HEAD | grep -v master`; do
echo ${branch##*/} $branch
done
git fetch --all
git pull -v
Thanks http://coderwall.com/filipekiss for the updates!
You can always find latest version on: https://gist.github.com/2869690
Written by Yuri Tkachenko
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
khasinski
591.1K
dmichaelavila
500.4K
Related Tags
#git
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#