# push > Push configuration changes to GitHub - Author: oozoofrog - Repository: oozoofrog/claude-github-sync - Version: 20260124160737 - Stars: 1 - Forks: 0 - Last Updated: 2026-02-06 - Source: https://github.com/oozoofrog/claude-github-sync - Web: https://mule.run/skillshub/@@oozoofrog/claude-github-sync~push:20260124160737 --- --- name: push user-invocable: true description: Push configuration changes to GitHub --- # Push Configuration Push local configuration changes to GitHub. ## Usage ``` /claude-github-sync:push /claude-github-sync:push "Custom commit message" ``` ## Instructions ### Step 1: Check configuration ```bash CONFIG_FILE="$HOME/.claude/sync-config.json" if [ ! -f "$CONFIG_FILE" ]; then echo "❌ Not configured" echo "Run: /claude-github-sync:init " exit 1 fi ``` ### Step 2: Stage and commit Extract optional commit message from `$ARGUMENTS`. Default: "Update Claude Code configuration" ```bash cd ~/.claude # Get current branch BRANCH=$(git rev-parse --abbrev-ref HEAD 2>/dev/null || echo "main") # Stage all changes git add -A # Check if there are changes to commit if git diff --cached --quiet; then echo "✅ Nothing to push - already in sync" exit 0 fi # Commit with message MESSAGE="${ARGUMENTS:-Update Claude Code configuration}" git commit -m "$MESSAGE" echo "✅ Committed: $MESSAGE" ``` ### Step 3: Push to remote ```bash # Push with upstream tracking if git push -u origin "$BRANCH" 2>&1; then echo "✅ Pushed to GitHub ($BRANCH)" else echo "❌ Push failed" echo "" echo "Possible issues:" echo " - Network connection" echo " - Remote has newer changes (run: /claude-github-sync:pull first)" echo " - Authentication issue" fi ``` ### Step 4: Show summary ```bash echo "" echo "📊 Summary:" git log --oneline -1 ```