19 lines
342 B
Batchfile
19 lines
342 B
Batchfile
cd REPO
|
|
mkdir out
|
|
cd out
|
|
|
|
FOR /F "tokens=*" %%A IN (../../repos.txt) DO (call :subroutine "%%A")
|
|
|
|
PAUSE
|
|
GOTO :eof
|
|
|
|
:subroutine
|
|
git clone ../%1
|
|
cd %1
|
|
git remote rm origin
|
|
git remote add origin git@repo:/var/repos/%1.git
|
|
git config master.remote origin
|
|
git config master.merge refs/heads/master
|
|
git push -u origin master
|
|
cd ..
|
|
GOTO :eof |