repo.or.cz
/
james-home.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
ignore service directories
[james-home.git]
/
bin
/
repomirror
blob
c5b85ce15a4405b2d8e58cdb67fe89d03e0d8483
1
#!/bin/sh
2
3
for
d
in
$
(
find
~
/
mirrorgit
-type
d
-name
'*.git'
)
4
do
5
echo
"Processing
$d
"
6
cd
$d
7
git fetch
8
git remote |
grep
github
&&
git push
--mirror
github
9
git remote |
grep
gitorious
&&
git push
--mirror
gitorious
10
git remote |
grep
bitbucket
&&
git push
--mirror
bitbucket
11
done