-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpush-to-github.bat
More file actions
82 lines (68 loc) · 1.77 KB
/
Copy pathpush-to-github.bat
File metadata and controls
82 lines (68 loc) · 1.77 KB
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
79
80
81
82
@echo off
REM GitHub Push Script for ExporTrack-AI
REM Run this in Command Prompt to push your changes to GitHub
echo ========================================
echo ExporTrack-AI GitHub Push Script
echo ========================================
echo.
REM Check if git is available
git --version >nul 2>&1
if %errorlevel% neq 0 (
echo Error: Git is not installed or not in PATH
exit /b 1
)
echo Git is available
echo.
REM Check if we're in a git repository
git rev-parse --git-dir >nul 2>&1
if %errorlevel% neq 0 (
echo Error: Not a git repository. Please initialize git first.
exit /b 1
)
REM Show current status
echo Checking git status...
git status --short
echo.
REM Add all changes
echo Adding changes to staging...
git add -A
echo.
REM Show what will be committed
echo Files to be committed:
git diff --cached --name-only
echo.
REM Commit
echo Committing changes...
git commit -m "fix: Improve authentication system (Login + Signup UI & Security)"
if %errorlevel% neq 0 (
echo Error: Failed to commit changes
exit /b 1
)
echo.
echo Changes committed successfully!
echo.
REM Push to remote
echo Pushing to GitHub...
git push -u origin main
if %errorlevel% equ 0 (
echo.
echo ========================================
echo Successfully pushed to GitHub!
echo ========================================
) else (
echo.
echo Trying with master branch...
git push -u origin master
if %errorlevel% equ 0 (
echo.
echo ========================================
echo Successfully pushed to GitHub!
echo ========================================
) else (
echo.
echo Error: Failed to push to GitHub
echo Please check your remote URL and authentication
exit /b 1
)
)
pause