Usage
Description
Pull commits and files from your VibeHub project to your local machine. This syncs your local repository with the remote state.Arguments
Remote name to pull from. Defaults to
origin.Branch to pull. Defaults to the current branch.
Options
Force pull and overwrite local changes. Use with caution.
Preview what would be pulled without actually pulling.
Specify a project ID to pull from.
Examples
Basic Pull
Pull from a Specific Branch
develop branch on the remote.
Preview Changes
Force Pull
Branch Workflow
VibeHub CLI uses Git for local branch management. Here’s how to work with branches:Pull from Current Branch
Pull from a Different Branch
Switch Branch and Pull
What Gets Pulled
When you pull, you receive:| Content | Included |
|---|---|
| New commits | Yes |
| Updated files | Yes |
| Deleted files | Yes |
| Commit metadata | Yes |
| AI prompts | Yes (viewable in VibeHub) |
Prerequisites
Before pulling, ensure you have:- Authenticated with
vibe login - Initialized your project with
vibe init - Connected to a VibeHub project with
vibe set <project-url>
Output
A successful pull shows:Handling Conflicts
If your local changes conflict with remote changes:Resolving Conflicts
- Backup your changes: Copy modified files elsewhere
- Force pull:
vibe pull --force - Manually merge: Re-apply your changes to the pulled files
Use Cases
Syncing Multiple Machines
Syncing Multiple Machines
Use pull to get the latest code when switching between computers.
Getting Team Changes
Getting Team Changes
Pull to receive commits pushed by collaborators.
Pull from Feature Branch
Pull from Feature Branch
Pull changes from a specific feature branch.
Starting Fresh
Starting Fresh
Force pull to reset your local state to match VibeHub.
Error Handling
Not Connected
vibe set.
Not Authenticated
vibe login.
Access Denied
No Remote Changes
Related Commands
- vibe push - Push commits to VibeHub
- vibe status - Check sync status
- vibe clone - Clone a project
