Commit 21a095e7da11470d0d35fbda18aea68154dc5e2b
1 parent
c1167f6c
Exists in
master
and in
3 other branches
Updating gitsync script.
Showing
1 changed file
with
5 additions
and
2 deletions
Show diff stats
gitsync.sh
... | ... | @@ -16,6 +16,9 @@ git fetch origin |
16 | 16 | git checkout master |
17 | 17 | git merge origin/master |
18 | 18 | |
19 | -git push github | |
20 | -git push bitbucket | |
19 | +for repo in $(git remote -v | grep -v origin | grep "(push)" | awk '{print $1}') | |
20 | +do | |
21 | + echo "Updating ${repo} ..." | |
22 | + git push ${repo} | |
23 | +done | |
21 | 24 | ... | ... |