alexanderop

Merge To Main — Git skill for Claude Code

Git community

Merge current branch to main via GitHub PR.

How to install Merge To Main

Installs to ~/.claude/commands/alexanderop-markvim-merge-to-main.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/alexanderop/MarkVim/HEAD/.claude/commands/merge-to-main.md -o ~/.claude/commands/alexanderop-markvim-merge-to-main.md

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

What Merge To Main does


description: Merge current branch to main via GitHub PR allowed-tools: Bash(git status), Bash(git branch), Bash(git log), Bash(git push), Bash(gh pr create), Bash(gh pr merge), Bash(gh pr list), Bash(gh pr view), Bash(git checkout), Bash(git pull) model: haiku

Merge to Main

I have gathered information about your branch. Here are the results:

!`git branch --show-current` !`git status --short` !`git

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 ★
  • PR Summary — Generate a pull request summary for the current branch 5.8k ★

Full documentation available on GitHub

View Source Repository