Back to skills
SKILL.md
1042 Sync Branch 6333fd48
ASecuritySync feature branch with the latest main branch.
- 9 stars
- 0 votes
- 0 copies
- 0 views
- Added October 11, 2026
Security analysis
100/100npx -y skills add tools-only/X-Skills --skill 1042-sync-branch_6333fd48 --agent claude-codeAre you the author of 1042 Sync Branch 6333fd48?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/tools-only-1042-sync-branch-6333fd48)---
description: Sync feature branch with the latest main branch.
argument-hint: [target]
---
1. Fetch latest upstream refs: `git fetch origin --prune`.
2. Identify target branch (default `main`, or override via argument).
3. Rebase current branch onto target:
```bash
git rebase origin/${target:-main}
```
4. Resolve any conflicts
5. Force-with-lease push to update the PR:
```bash
git push --force-with-lease origin $(git branch --show-current)
```
Attribution
Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.