zarifaziz

Update Branch — Git skill for Claude Code

Git community

Merge main into the current feature branch.

How to install Update Branch

Installs to ~/.claude/skills/zarifaziz-agent-scripts-update-branch/SKILL.md

Terminal
mkdir -p ~/.claude/skills/zarifaziz-agent-scripts-update-branch && curl -fsSL https://raw.githubusercontent.com/zarifaziz/agent-scripts/HEAD/commands/update-branch.md -o ~/.claude/skills/zarifaziz-agent-scripts-update-branch/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

What Update Branch does


allowed-tools: Bash(git *), Bash(cargo *), Bash(just *), Bash(dart *), Bash(flutter *), Bash(flutter_rust_bridge_codegen *), Read, Edit, Write, Glob, Grep, Agent description: Merge main into the current feature branch

Context

  • Current branch: !git branch --show-current
  • Current status: !git status --short
  • Main branch latest: !git log origin/main --oneline -1
  • Branch divergence: !git rev-list --left-right --count origin/main...HEAD

Your task

Merge `origin/main` into

Alternatives in Git

  • Ws Reset — Reset the current branch to main, fetch upstream, and update submodules 38.1k ★
  • OSS PR — Commit + PR workflow for open source contributions: auto-creates a user-prefixed branch when on main/master, t 19.7k ★
  • Merge Command — Finalize worktree work: update docs, commit, merge to main, clean up 1.3k ★

Full documentation available on GitHub

View Source Repository