Files
gartenmanager/.claude/scripts/git-sync.sh
Faultier314 5b00036951 docs: update CLAUDE.md and add git helper scripts
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-06 07:56:33 +02:00

12 lines
286 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/usr/bin/env bash
# git-sync.sh aktuellen Branch mit Remote synchronisieren (pull + push)
set -euo pipefail
ROOT="$(git rev-parse --show-toplevel)"
cd "$ROOT"
BRANCH=$(git branch --show-current)
git pull origin "$BRANCH"
git push origin "$BRANCH"
echo "Synchronisiert: $BRANCH"