benjaminshoemaker

Gh Init — Git skill for Claude Code

Git community

Initialize git repo and push to GitHub.

How to install Gh Init

Installs to ~/.claude/commands/benjaminshoemaker-ai_coding_project_base-gh-init.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/benjaminshoemaker/ai_coding_project_base/HEAD/.claude/commands/gh-init.md -o ~/.claude/commands/benjaminshoemaker-ai_coding_project_base-gh-init.md

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

What Gh Init does


description: Initialize git repo and push to GitHub. Triggers on new project setup requiring a GitHub repository. argument-hint: [target-directory] allowed-tools: Bash, Read, Write, Edit, Glob, AskUserQuestion

Initialize a git repository with smart project detection and optional GitHub remote creation.

Usage

/gh-init              # Initialize in current directory
/gh-init ./my-project # Initialize in specified directory

Steps

Copy this checklist and track progress:

``

Alternatives in Git

  • Git Worktree Setup — Create isolated git worktrees with instant feedback and background Rust verification 25.5k ★
  • Worktree Parallel Init — Create multiple git worktrees for parallel development: $ARGUMENTS 23.4k ★
  • Commit Commands — Git commit workflows: commit, push, and PR creation 14k ★

Full documentation available on GitHub

View Source Repository