forked from Stellar-split/split-contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpush_with_ssh.bat
More file actions
50 lines (42 loc) · 1.37 KB
/
Copy pathpush_with_ssh.bat
File metadata and controls
50 lines (42 loc) · 1.37 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
@echo off
REM Script to push using SSH authentication
REM This script switches the remote to SSH and attempts to push
echo.
echo =========================================
echo Git SSH Push Helper
echo =========================================
echo.
cd /d "c:\Users\Admin\Desktop\StellarSplit\split-contracts"
echo Checking current branch...
git branch --show-current
echo.
echo Switching remote to SSH...
git remote set-url origin git@github.com:johnsaviour56-ship-it/split-contracts.git
echo.
echo Remote URL after change:
git remote -v
echo.
echo Attempting to push branch: add-fallback-action-for-auto-resolve
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 View your branch at:
echo https://github.com/johnsaviour56-ship-it/split-contracts/tree/add-fallback-action-for-auto-resolve
) else (
echo.
echo =========================================
echo FAILED! Push did not succeed
echo =========================================
echo.
echo Troubleshooting:
echo - Make sure SSH keys are configured: ssh -T git@github.com
echo - If SSH fails, use a Personal Access Token instead
echo - See PUSH_INSTRUCTIONS.md for more details
)
echo.
pause