forked from Stellar-split/split-contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPUSH_NOW.bat
More file actions
53 lines (46 loc) · 1.53 KB
/
Copy pathPUSH_NOW.bat
File metadata and controls
53 lines (46 loc) · 1.53 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
@echo off
echo.
echo ========================================================
echo PUSHING BRANCH - johnsaviour56-ship-it
echo ========================================================
echo.
cd /d "c:\Users\Admin\Desktop\StellarSplit\split-contracts"
echo Temporarily disabling credential caching...
git config --global credential.helper ""
echo.
echo Current branch:
git branch --show-current
echo.
echo ========================================================
echo PUSHING NOW - Enter johnsaviour56-ship-it credentials
echo ========================================================
echo.
git push -u origin add-fallback-action-for-auto-resolve
if %ERRORLEVEL% EQU 0 (
echo.
echo ========================================================
echo SUCCESS! Branch is now on GitHub
echo ========================================================
echo.
echo Re-enabling 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
echo.
) else (
echo.
echo ========================================================
echo PUSH FAILED
echo ========================================================
echo.
echo Restoring credential helper...
git config --global credential.helper manager
echo.
echo Try manually:
echo 1. Open Credential Manager in Windows
echo 2. Delete git:https://github.com entry
echo 3. Run this script again
)
echo.
pause