# pull > Pull latest configuration from 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~pull:20260124160737 --- --- name: pull user-invocable: true description: Pull latest configuration from GitHub --- # Pull Configuration Pull the latest configuration from your GitHub repository. ## Usage ``` /claude-github-sync:pull ``` ## 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: Pull changes ```bash cd ~/.claude # Get current branch BRANCH=$(git rev-parse --abbrev-ref HEAD 2>/dev/null || echo "main") # Stash local changes if any if ! git diff --quiet 2>/dev/null; then echo "📦 Stashing local changes..." git stash STASHED=true fi # Pull with rebase if git pull --rebase origin "$BRANCH" 2>&1; then echo "✅ Pulled latest configuration" else echo "❌ Pull failed" echo "" echo "Possible issues:" echo " - Network connection" echo " - Merge conflicts (run: git status)" echo " - Remote branch doesn't exist" git status --short fi # Restore stashed changes if [ "$STASHED" = true ]; then echo "📦 Restoring local changes..." git stash pop fi ``` ### Step 3: Report result Show the user what was updated.