Created
March 28, 2013 14:24
-
-
Save eduardo-matos/5263516 to your computer and use it in GitHub Desktop.
GIT: Update all remote tracking changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Usage: fetchall.sh branch ... | |
set -x | |
git fetch --all | |
for branch in "$@"; do | |
git checkout "$branch" || exit 1 | |
git rebase "origin/$branch" || exit 1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment