Pull And Sync — Git skill for Claude Code
Sync working branch with latest from default branch using merge --no-ff.
How to install Pull And Sync
Installs to ~/.claude/commands/my-stacks-claude-code-skills-pull-and-sync.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/My-Stacks/claude-code-skills/HEAD/.claude/commands/pull-and-sync.md -o ~/.claude/commands/my-stacks-claude-code-skills-pull-and-sync.md Restart Claude Code, or start a new session, for it to be picked up.
What Pull And Sync does
name: pull-and-sync version: "1.0" description: "Sync working branch with latest from default branch using merge --no-ff." allowed-tools: Bash
/pull-and-sync — Sync with Latest
1. Gather context
git branch --show-current— current branch ($BRANCH)git status --porcelain— uncommitted changesgit symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@'— default branch ($DEFAULT). Fallback: `git remote show origin | sed -n 's/.*HEAD branc
Alternatives in Git
- PR Summary — Generate a pull request summary for the current branch 5.8k ★
- Cmt — When user uses /cmt slash command, commit current git changes using fast mode by default, or strict mode when 301 ★
- Final Pass — look at the git branch we are on to see what we have been working on 200 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Git Contribute Sync
Merge the owner's latest master into your claude-harness feature branch, run the tests and push it to your for
PR Merged
Post-merge cleanup — checkout main, pull latest, delete the feature branch, and close the linked work item.
Dip
Post-merge cleanup — switch to base branch, pull latest, delete the merged feature branch, restore any stash.
Ship
Create a pull request from the current working branch to main, ensure the version is bumped, and draft a GitHu
Fullstack Sync Review
Run a contract review of recent changes — scoped (low) or full both-repos (hard). Report-only by default; hard
Gw PR Sync
gw-pr-sync - Sync PR with latest main branch
Related Agents
Git Pull
Safely pull updates (fork/upstream aware), stash-first, resolve conflicts via memory-bank context, no auto-sta
SEO Drafter
Writes ONE new page from an approved topic issue or brief, in the site's exact content format, marked queued,
Yago
Use this agent when the user asks to write, create, or generate a pull request description, PR description, or