CodeStandard/devops/scripts/MergeIntoMaster.bat

19 lines
342 B
Batchfile
Raw Normal View History

2024-06-07 20:00:25 +03:00
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