Skip to content

Instantly share code, notes, and snippets.

@chales
Forked from tamtamchik/fetcher.sh
Created May 8, 2014 16:42
Show Gist options
  • Save chales/51f03fd7f8d0524ab411 to your computer and use it in GitHub Desktop.
Save chales/51f03fd7f8d0524ab411 to your computer and use it in GitHub Desktop.
#!/bin/bash
for branch in `git branch -r | grep -v HEAD | grep -v master`; do
echo ${branch##*/} $branch
done
echo "Fetching..."
git fetch --all
echo "Pulling..."
git pull -v
echo "Results: Branches"
git branch -a
echo "Results: Tags"
git tag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment