forked from androidc/androidDev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
___GFix.bat
78 lines (68 loc) · 1.39 KB
/
___GFix.bat
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
@rem
@echo off
rem call .git_setup\.git_ini.bat
set wait=d:\Prj_4\Android\Bin\Utils\wait\wait.exe
set git_path=c:\Program Files (x86)\Git\
set git="%git_path%cmd\git.exe"
set prj_path=%~d0%~p0
rem %wait% colors
%git% config --local core.autocrlf false
%git% config --local gui.encoding utf-8
echo.
%wait% color 0B
echo add all...
%wait% color 0F
%git% reset
%git% add -A
echo ===============================
%git% status
echo ===============================
%git% status --short
echo ===============================
echo.
%wait% color 3B
echo commit...
%wait% color 0F
If "%TIME:~0,1%"==" " (
set dt_now=%DATE:~6,10%_%DATE:~3,2%_%DATE:~0,2% 0%TIME:~1,1%:%TIME:~3,2%:%TIME:~6,5%
) else (
set dt_now=%DATE:~6,10%_%DATE:~3,2%_%DATE:~0,2% %TIME:~0,2%:%TIME:~3,2%:%TIME:~6,5%
)
set comment0=如戾礤龛� 铗 %dt_now%.
%wait% color 02
echo 暑戾眚囵栝:
%wait% color 1A
set /p comment="%comment0% "
%wait% color 08
set comment=%comment0% %comment%
echo %git% commit -m "%comment%"
%git% commit -m "%comment%"
echo.
%wait% color 0B
echo get all:
%wait% color 0F
if "%need_sinhro%"=="1" (
%git% fetch --all
rem %git% pull --all
rem %git% push --all
) else (
%wait% color EC
echo.
echo not sinhro!
)
echo.
%wait% color 0B
echo send all:
%wait% color 0F
if "%need_sinhro%"=="1" (
rem %git% fetch --all
rem %git% pull --all
%git% push --all
) else (
%wait% color EC
echo.
echo not sinhro!
)
echo.
%wait% wait 30
rem +++