Files
gartenmanager/.claude/scripts/git-commit.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

22 lines
489 B
Bash
Raw Permalink 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-commit.sh Stage all, commit, push
# Verwendung: bash .claude/scripts/git-commit.sh "commit message" [minor|patch(default)]
set -euo pipefail
MESSAGE="${1:-}"
BUMP="${2:-patch}"
if [[ -z "$MESSAGE" ]]; then
echo "Verwendung: bash .claude/scripts/git-commit.sh \"message\" [patch|minor]"
exit 1
fi
ROOT="$(git rev-parse --show-toplevel)"
cd "$ROOT"
git add -A
git commit -m "$MESSAGE
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>"
git push