cd "$1"
fi
-# Get all remote changes.
-git remote update 2>&1 | grep -v Fetching
-# Push all local changes to remote(s).
-for remote in `git remote`; do
- git push $remote 2>&1 | grep -v 'Everything up-to-date'
- git push --tags $remote 2>&1 | grep -v 'Everything up-to-date'
-done
+if [ x$LOCAL = x ]; then
+ # Get all remote changes.
+ git remote update 2>&1 | grep -v Fetching
+ # Push all local changes to remote(s).
+ for remote in `git remote`; do
+ git push $remote 2>&1 | grep -v 'Everything up-to-date'
++ git push --tags $remote 2>&1 | grep -v 'Everything up-to-date'
+ done
+fi
# Show unmerged changes.
git branch -rv --color --no-merged
# Show uncommitted changes.