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
- Bulletproof Quick Start Guide — Target Audience: Complete beginners Never used Python/git before 11.1k ★
- Fresh Start — The original nirholas/claude-code before DMCA and take down 6.2k ★
- PR Summary — Generate a pull request summary for the current branch 5.8k ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
PR Merged
Post-merge cleanup — checkout main, pull latest, delete the feature branch, and close the linked work item.
Ship
Create a pull request from the current working branch to main, ensure the version is bumped, and draft a GitHu
Gw PR Sync
gw-pr-sync - Sync PR with latest main branch
Sync Branch
Sync feature branch with the latest main branch.
Git Pull
Pull the latest changes from the remote for the current branch.
Git Switch To Main
Switch to the main branch and pull the latest changes.
Related Agents
Git Pull
Safely pull updates (fork/upstream aware), stash-first, resolve conflicts via memory-bank context, no auto-sta
Yago
Use this agent when the user asks to write, create, or generate a pull request description, PR description, or
PR Manager
Manages pull requests and merge requests across GitHub, GitLab, and Azure DevOps. Handles listing, viewing, cr