Gw Push From Main — Git skill for Claude Code
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
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
- 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 RepositoryRelated Skills
Create Worktrees
by evmts - Creates git worktrees for all open PRs or specific branches, handling branches with slashes, cleani
Ccc Feature Start
Kickoff a new feature with branch creation, TDD setup, and task breakdown
/create PR
by toyamarinyon - Streamlines pull request creation by handling the entire workflow: creating a new branch, co
1.2 Merge To Main
Commit alle endringer, merge feature til main lokalt, push, og gå tilbake til feature.
Ship And Babysit
Commit, push to origin, open a PR against bendourthe/Gemma-Code:main, then poll Gemma-Code's own CI every ~270
Maestro Merge
Merge session worktree branch back to main
Related Agents
Git Manager
Use this agent when you need to stage, commit, and push code changes to the current git branch while ensuring
GitOps
Git operations specialist. MUST BE USED for branch management, conflict resolution, git history analysis, work
Ada
Builder. The role that writes code and files: implements features and fixes, runs the build and tests, and com