forked from Stellar-split/split-contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfinal_push.bat
More file actions
46 lines (39 loc) · 1.41 KB
/
Copy pathfinal_push.bat
File metadata and controls
46 lines (39 loc) · 1.41 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
@echo off
echo.
echo ========================================================
echo FINAL PUSH ATTEMPT
echo ========================================================
echo.
cd /d "c:\Users\Admin\Desktop\StellarSplit\split-contracts"
echo Step 1: Switch remote back to HTTPS...
git remote set-url origin https://github.com/johnsaviour56-ship-it/split-contracts.git
echo.
echo Step 2: Clear credential helper temporarily...
git config --global --unset credential.helper
echo.
echo Step 3: Attempting push without credential caching...
echo This will prompt for credentials - use johnsaviour56-ship-it account
echo.
git push -u origin add-fallback-action-for-auto-resolve
if %ERRORLEVEL% EQU 0 (
echo.
echo ========================================================
echo SUCCESS! Branch pushed to GitHub!
echo ========================================================
echo.
echo Restoring credential helper...
git config --global credential.helper manager
echo.
echo View your branch at:
echo https://github.com/johnsaviour56-ship-it/split-contracts/tree/add-fallback-action-for-auto-resolve
) else (
echo.
echo ========================================================
echo Push failed - trying alternative method
echo ========================================================
echo.
echo Restoring credential helper...
git config --global credential.helper manager
)
echo.
pause