My-Stacks

Pull And Sync — Git skill for Claude Code

Git community

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

Terminal
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 changes
  • git 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 Repository