git_update_all_branches.sh: added --rebase to git pull
This commit is contained in:
parent
574e0896a6
commit
7161bf0530
|
@ -5,7 +5,7 @@ echo "============= GIT UPDATE BRANCHES ============="
|
||||||
for f in $(git br -a | grep remotes | grep -v "remotes/origin/HEAD" | awk '{print $1}' | cut -f3 -d\/)
|
for f in $(git br -a | grep remotes | grep -v "remotes/origin/HEAD" | awk '{print $1}' | cut -f3 -d\/)
|
||||||
do
|
do
|
||||||
echo "Updateing: ${f}"
|
echo "Updateing: ${f}"
|
||||||
git checkout "${f}" --quiet && git pull origin "${f}" --quiet
|
git checkout "${f}" --quiet && git pull --rebase origin "${f}" --quiet
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "==========================================="
|
echo "==========================================="
|
||||||
|
|
Loading…
Reference in New Issue