Skip to main content

sync-branches

Sync commits to both main and v0/rohangupta-dec27c78 branches. Use after committing changes, when pushing code, or when asked to sync branches. Ensures both branches stay in lockstep.

Source facts

Repository
thisrohangupta/v0-harness-documentation-website
Last source activity
March 3, 2026 at 06:12
Detected SKILL.md language
English
Stars
1
Forks
0

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
sync-branches
description
Sync commits to both main and v0/rohangupta-dec27c78 branches. Use after committing changes, when pushing code, or when asked to sync branches. Ensures both branches stay in lockstep.
disable-model-invocation
true
allowed-tools
Bash(git *)
# Sync Both Branches After committing changes, sync them to both `main` and `v0/rohangupta-dec27c78` branches. Both branches MUST always stay in sync. ## Steps 1. **Confirm current state** - Run `git status` to ensure the working tree is clean - Run `git log --oneline -3` to identify the commit(s) to sync - Note the current branch 2. **If on `main`:** ```bash git checkout v0/rohangupta-dec27c78 git cherry-pick <commit-hash> git checkout main ``` 3. **If on `v0/rohangupta-dec27c78`:** ```bash git checkout main git cherry-pick <commit-hash> git checkout v0/rohangupta-dec27c78 ``` 4. **Push both branches:** ```bash git push origin main git push origin v0/rohangupta-dec27c78 ``` 5. **Return to the original branch** the user was on. ## Rules - NEVER force push - NEVER push to only one branch — both must be updated - If cherry-pick has conflicts, stop and ask the user for guidance - If there are uncommitted changes, stop and ask the user to commit first - Always verify both branches have the same HEAD commit after sync
View on GitHub