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

  • 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 Repository