mirror of
https://github.com/rennf93/roboco.git
synced 2026-08-03 07:23:24 +02:00
1.4 KiB
1.4 KiB
Git Error Troubleshooting
Workspace Not Found
Error: "Workspace does not exist"
Cause: Workspace not cloned yet
Solutions:
- If auto_clone enabled: workspace creates on first access
- Manual: Wait for workspace service to clone
- Check config:
ROBOCO_WORKSPACE_AUTO_CLONE=true
Cannot Push
Error: "Push failed"
Causes:
- No commits to push
- Remote branch doesn't exist
- Conflicts with remote
Solutions:
- Create commits first:
roboco_git_commit(...) - Check branch exists:
roboco_git_branches() - Pull and resolve conflicts
Branch Already Exists
Error: "Branch already exists"
Cause: Trying to create existing branch
Solution: Checkout existing branch:
roboco_git_checkout(project_slug, branch_name)
Merge Conflicts
Error: "Merge conflict"
Cause: Conflicting changes between branches
Solutions:
- Pull latest from target branch
- Resolve conflicts manually
- Commit resolution
- Push again
PR Creation Failed
Error: "PR creation failed"
Causes:
- No commits on branch
- Branch not pushed
- GitHub CLI not configured
Solutions:
- Push branch first:
roboco_git_push() - Verify commits exist:
roboco_git_log()
Checkout Failed
Error: "Cannot checkout - uncommitted changes"
Cause: Working directory has uncommitted changes
Solutions:
- Commit changes:
roboco_git_commit(...) - Or stash changes (if supported)