Upload commit.bat
Browse files- commit.bat +30 -0
commit.bat
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@echo off
|
| 2 |
+
|
| 3 |
+
git config user.name "anonymous"
|
| 4 |
+
git config user.email my@gmail.com
|
| 5 |
+
|
| 6 |
+
set /P comment=Comment?
|
| 7 |
+
|
| 8 |
+
if not "%comment%" == "" goto :next
|
| 9 |
+
set comment=auto
|
| 10 |
+
:next
|
| 11 |
+
|
| 12 |
+
git reset
|
| 13 |
+
|
| 14 |
+
::git add *.* --force
|
| 15 |
+
::git add *
|
| 16 |
+
git add --all
|
| 17 |
+
|
| 18 |
+
echo ----- git add done ------
|
| 19 |
+
|
| 20 |
+
git status
|
| 21 |
+
|
| 22 |
+
echo ready. press any key to commit START.
|
| 23 |
+
::timeout /t 1
|
| 24 |
+
pause
|
| 25 |
+
|
| 26 |
+
git commit -m "%comment%"
|
| 27 |
+
|
| 28 |
+
git push -u origin main
|
| 29 |
+
|
| 30 |
+
pause
|