askill
sync

syncSafety 85Repository

Sync current branch with main/master (fetch, checkout, pull, rebase).

0 stars
1.2k downloads
Updated 2/5/2026

Package Files

Loading files...
SKILL.md

Sync Branch

Sync the current branch with the main/master branch.

When This Skill Applies

  • User asks to sync their branch
  • User wants to update from main/master
  • User says "sync" or "rebase on main"

Context to Gather

# Current branch
git branch --show-current

# Default branch
git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@' || echo "main"

# Current status
git status --short

Workflow

1. Fetch latest from origin

git fetch origin

2. Sync based on branch

If on a feature branch: Rebase onto main/master

git rebase origin/main  # or origin/master

If on main/master: Just pull

git pull --rebase origin main

3. Handle Conflicts

If rebase conflicts occur:

  • List the conflicting files
  • Do NOT automatically resolve - inform the user and stop
  • Provide the command to abort: git rebase --abort

Output

Report:

  • What branch you synced
  • How many commits were rebased (if any)
  • Current status after sync

Install

Download ZIP
Requires askill CLI v1.0+▶

AI Quality Score

88/100Analyzed 2/18/2026

Well-structured skill for syncing Git branches with clear steps, context gathering, and safety considerations. Includes when-to-use triggers, structured commands, and conflict handling. Located in dedicated skills folder with tags for discoverability. Minor gaps: no icon, could use more edge case handling.

85
90
90
85
90

Metadata

Licenseunknown
Version-
Updated2/5/2026
Publisherdtbuchholz

Tags

github-actions