o-gi

Gw Push From Main — Git skill for Claude Code

Git community

Create a new branch from main and push with PR creation.

How to install Gw Push From Main

Installs to ~/.claude/skills/o-gi-claude-code-commands-gw-push-from-main/SKILL.md

Terminal
mkdir -p ~/.claude/skills/o-gi-claude-code-commands-gw-push-from-main && curl -fsSL https://raw.githubusercontent.com/o-gi/claude-code-commands/HEAD/commands/gw-push-from-main.md -o ~/.claude/skills/o-gi-claude-code-commands-gw-push-from-main/SKILL.md

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

What Gw Push From Main does

Create a new branch from main and push with PR creation.

Usage

/user:gw-push-from-main [branch-name-or-description]

Examples

# Auto-generate branch name from changes
/user:gw-push-from-main

# Use specified branch name
/user:gw-push-from-main feat-user-auth

# Use description (will be converted to branch name)
/user:gw-push-from-main "add user authentication"

Workflow

  1. Check current branch
    • Must be on main/master branch
    • Error if already on featur

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 ★
  • Commit Commands — Git commit workflows: commit, push, and PR creation 14k ★

Full documentation available on GitHub

View Source Repository