Files
docu/shared/git-und-repos.md
T
root 6f52d46267 Initiale Infrastruktur-Dokumentation pve1 und pve2.
Enthält Host-Doku, MQTT/HA, Git-Setup, Power-Monitoring und GPU-Idle (pve2).

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-27 19:53:55 +02:00

1.7 KiB

Git & Repositories

Gitea: https://git.jeanavril.com · User: jean

Repositories

Repo URL Clone-Pfad auf Hosts
docu https://git.jeanavril.com/jean/docu.git /root/docu-repo
server-power https://git.jeanavril.com/jean/server-power.git /root/code/pve-power-mqtt

Authentifizierung (HTTPS)

SSH zu Gitea ist über Reverse-Proxy nicht eingerichtet → HTTPS + Token.

Token (Gitea → Settings → Applications)

User jean, Token für Automation auf den Proxmox-Hosts.

Gespeichert in: /root/.git-credentials-jeanavril

https://jean:<TOKEN>@git.jeanavril.com

(chmod 600)

Git-Credential pro Repo (lokal)

In jedem Repo unter .git/config:

credential.helper=store --file /root/.git-credentials-jeanavril

Setzen:

cd /root/docu-repo   # oder /root/code/pve-power-mqtt
git config --local credential.helper 'store --file /root/.git-credentials-jeanavril'

Erstes Setup auf neuem Host

# Doku
git clone https://git.jeanavril.com/jean/docu.git /root/docu-repo
cd /root/docu-repo
git config --local credential.helper 'store --file /root/.git-credentials-jeanavril'
# Token-Datei anlegen (Inhalt von anderem Host kopieren)

# Power-Agent
git clone https://git.jeanavril.com/jean/server-power.git /root/code/pve-power-mqtt
cd /root/code/pve-power-mqtt
git config --local credential.helper 'store --file /root/.git-credentials-jeanavril'

Go installiert

Pfad: /usr/local/go/bin/go — in ~/.bashrc:

export PATH="/usr/local/go/bin:$PATH"

Workflow

cd /root/docu-repo && git pull
# editieren
git add -A
git commit -m "Kurze Beschreibung"
git push