askill
sync

syncSafety 90Repository

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

A well-structured git sync skill with clear trigger conditions, executable commands, and good safety practices around conflict handling. Located in dedicated skills folder with appropriate tags. The only minor issues are the somewhat mismatched 'github-actions' tag and could include a bit more context on undo operations.

90
85
85
85
88

Metadata

Licenseunknown
Version-
Updated2/5/2026
Publisherdtbuchholz

Tags

github-actions