-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathupload.bat
More file actions
32 lines (26 loc) · 907 Bytes
/
upload.bat
File metadata and controls
32 lines (26 loc) · 907 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
@echo off
REM ============================================
REM GitHub Upload Script (fixed for master branch)
REM Author : sohag1192
REM Date : %date% %time%
REM ============================================
cd /d "C:\Users\USER\Downloads\GitHub_Upload\MikroTik-Script-Generators"
IF NOT EXIST ".git" (
echo Initializing new Git repository...
git init
git remote add origin https://github.com/sohag1192/how-to-forward-dns-TCP-UDP-to-mikrotik-dns.git
git branch -M master
)
REM Stage and commit changes
git add .
set CURRDATE=%date% %time%
git commit -m "Auto commit on %CURRDATE% with Sohag1192 updates"
REM Pull latest changes safely
git pull origin master --rebase
REM Push to correct branch
git push origin master
echo.
echo ============================================
echo Upload Completed Successfully to GitHub
echo ============================================
pause