-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGITHUB_YUKLE.bat
More file actions
82 lines (72 loc) · 1.79 KB
/
Copy pathGITHUB_YUKLE.bat
File metadata and controls
82 lines (72 loc) · 1.79 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
echo ========================================
echo FREQTRADE BOT - GITHUB'A YUKLEME
echo ========================================
echo.
REM Git yüklü mü kontrol et
git --version >nul 2>&1
if errorlevel 1 (
echo [HATA] Git yuklu degil!
echo https://git-scm.com/download/win adresinden indir
pause
exit /b 1
)
echo [1/6] Git repository'yi hazirlaniyor...
if not exist .git (
git init
echo Git repository olusturuldu.
) else (
echo Git repository zaten mevcut.
)
echo.
echo [2/6] Dosyalar ekleniyor...
git add .
echo.
echo [3/6] Commit yapiliyor...
set /p COMMIT_MSG="Commit mesaji girin (varsayilan: 'Update'): "
if "%COMMIT_MSG%"=="" set COMMIT_MSG=Update
git commit -m "%COMMIT_MSG%"
echo.
echo [4/6] GitHub repository URL'i gerekli!
echo GitHub'da yeni bir repo olustur: https://github.com/new
echo Sonra buraya URL'i yapistir.
echo Ornek: https://github.com/kullaniciadi/freqtrade_bot.git
echo.
set /p REPO_URL="GitHub repository URL: "
if "%REPO_URL%"=="" (
echo [HATA] URL girmediniz!
pause
exit /b 1
)
echo.
echo [5/6] Remote repository ekleniyor...
git remote remove origin 2>nul
git remote add origin %REPO_URL%
echo.
echo [6/6] GitHub'a gonderiliyor...
git branch -M main
git push -u origin main
if errorlevel 1 (
echo.
echo [HATA] Push basarisiz! Muhtemel nedenler:
echo - GitHub login gerekiyor
echo - Repository izinleri yanlis
echo - Network sorunu
echo.
echo Manuel olarak dene:
echo git push -u origin main
pause
exit /b 1
)
echo.
echo ========================================
echo BASARILI! GitHub'a yuklendi.
echo ========================================
echo.
echo Simdi server'da calistir:
echo ssh root@SUNUCU_IP
echo git clone %REPO_URL%
echo cd freqtrade_bot
echo sudo docker-compose up -d
echo.
pause