Usage
Description
Push your local commits to your VibeHub project in the cloud. This syncs your local changes with the remote repository, including any captured AI prompts.Options
Force push even if there are conflicts. Use with caution.
Preview what would be pushed without actually pushing.
Specify a project ID to push to. Useful when working with multiple projects.
Specify which branch to push to (defaults to current branch).
Examples
Basic Push
Preview Changes
Force Push
Push to Specific Project
What Gets Pushed
When you push, VibeHub receives:| Content | Included |
|---|---|
| Commit message | Yes |
| Changed files | Yes |
| File contents | Yes |
| Author information | Yes |
| Timestamp | Yes |
| AI prompts (if captured) | Yes |
Prerequisites
Before pushing, ensure you have:- Authenticated with
vibe login - Initialized your project with
vibe init - Connected to a VibeHub project with
vibe set <project-url>
Push Workflow
Output
A successful push shows:Error Handling
Not Connected
vibe set.
Not Authenticated
vibe login.
Network Error
Conflicts
vibe pull or force push with --force.
Best Practices
Push Frequently
Push Frequently
Push often to keep your remote in sync and avoid large uploads.
Use Dry Run First
Use Dry Run First
When unsure, use
--dry-run to preview what will be pushed.Avoid Force Push
Avoid Force Push
Force pushing can overwrite others’ work. Use only when necessary.
Check Status First
Check Status First
Run
vibe status before pushing to see what will be synced.Related Commands
- vibe pull - Pull changes from VibeHub
- vibe status - Check sync status
- vibe init - Initialize a repository