-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwindows-gitpush.bat
More file actions
56 lines (29 loc) · 767 Bytes
/
windows-gitpush.bat
File metadata and controls
56 lines (29 loc) · 767 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
@echo off
rem git push workflow windows bat file
rem author: hellodk
rem time: 2021-07-04 14:55:39
rem script feature description: `git add .` and `git commit -m` and `git push` workflow
echo.
echo this a git push workflow in Windows, using a bat file
echo.
echo current time is: %DATE% %TIME%
rem display a break line
echo.
set "CURRENT_DIR=%cd%"
cd "%CURRENT_DIR%"
echo current work dir is: %CURRENT_DIR%
echo.
set gittt="C:\Program Files\Git\cmd\git.exe"
echo first step: git add .
%gittt% add .
timeout /T 2 /NOBREAK
echo.
echo second step: git commit -m 'xxx'
%gittt% commit -m "%DATE% %TIME% update"
timeout /T 2 /NOBREAK
echo.
echo third step: git push
%gittt% push
rem the end of the workflow.
echo.
echo the end of the workflow.