-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpush.bat
More file actions
61 lines (48 loc) · 1.34 KB
/
push.bat
File metadata and controls
61 lines (48 loc) · 1.34 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
@echo off
setlocal enabledelayedexpansion
REM === Git User Config ===
git config --global user.name "Andre Stubbe"
git config --global user.email "andrestubbe@proton.me"
REM === Commit Message ===
set MSG=Auto Update
REM === Basis-Pfad ===
set BASE=C:\Users\andre\Documents\2026-05-17-Work-FastJava
REM === Liste für ignorierte Repos ===
set IGNORED=
echo Starte FORCE Updates (Repos ohne Remote werden ignoriert)...
echo.
for /d %%R in ("%BASE%\Fast*") do (
echo ================================
echo Repository: %%R
echo ================================
cd "%%R"
REM === Prüfen ob Remote existiert ===
git remote get-url origin >nul 2>&1
if errorlevel 1 (
echo Kein Remote → Repo wird ignoriert.
set IGNORED=!IGNORED!%%~nR;
cd "%BASE%"
echo.
continue
)
REM === Commit immer ===
git add -A
git commit -m "%MSG%" >nul 2>&1
REM === FORCE PUSH ===
echo Force Push...
git push origin HEAD --force
cd "%BASE%"
echo.
)
echo ============================================
echo = ZUSAMMENFASSUNG: Ignorierte Repos =
echo ============================================
if "%IGNORED%"=="" (
echo Alle Repos hatten einen Remote.
) else (
for %%I in (%IGNORED%) do (
echo - %%I
)
)
echo.
echo Fertig! Nur Repos mit Remote wurden gepusht.