From 21a095e7da11470d0d35fbda18aea68154dc5e2b Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Thu, 29 Nov 2018 14:50:38 -0200 Subject: [PATCH] Updating gitsync script. --- gitsync.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gitsync.sh b/gitsync.sh index 10264bb..67a0945 100755 --- a/gitsync.sh +++ b/gitsync.sh @@ -16,6 +16,9 @@ git fetch origin git checkout master git merge origin/master -git push github -git push bitbucket +for repo in $(git remote -v | grep -v origin | grep "(push)" | awk '{print $1}') +do + echo "Updating ${repo} ..." + git push ${repo} +done -- libgit2 0.21.2