forked from microsoft/AirSim
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitcommitall.bat
More file actions
62 lines (54 loc) · 847 Bytes
/
Copy pathgitcommitall.bat
File metadata and controls
62 lines (54 loc) · 847 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
@echo off
REM //---------- set up variable ----------
setlocal
set ROOT_DIR=%~dp0
REM root folder for repos
set RepoRoot=%1
set CommitMessage=%2
IF "%CommitMessage%"=="" (
echo "CommitMessage needs to be provided"
goto :failed
)
IF NOT EXIST %RepoRoot% (
echo "RepoRoot needs to be provided"
goto :failed
)
for %%x in (
1919Presentation
Africa
AirSimEnvNH
AncientRome
ApartmentInterior
B99
B99_b
CityEnviron
Coastline
DowntownCar
Forest
LandscapeMountains
Manhatten_Test
ModularCity
Plains
SimpleMaze
TalkingHeads
TrapCamera
Warehouse
ZhangJiaJie
) do (
@echo Now doing "%%x"
cd /d %RepoRoot%
cd "%%x"
git add -A
git commit -m %CommitMessage%
git push
cd ..
)
goto :done
:failed
@echo "Error occured"
@echo Usage: gitcommitall <repo root> <commit message>
cd "%ROOT_DIR%"
exit /b 1
:done
cd "%ROOT_DIR%"
if "%1"=="" pause