guesung

Branch New — Git skill for Claude Code

Git community

master 브랜치로 이동(필요 시)한 뒤, 현재 커밋들을 바탕으로 새 브랜치를 생성한다.

How to install Branch New

Installs to ~/.claude/commands/guesung-web-memo-branch-new.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/guesung/Web-Memo/HEAD/.claude/commands/branch-new.md -o ~/.claude/commands/guesung-web-memo-branch-new.md

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

What Branch New does


name: branch-new description: master 브랜치로 이동(필요 시)한 뒤, 현재 커밋들을 바탕으로 새 브랜치를 생성한다. 인자가 주어지면 그 문구를 바탕으로 브랜치명을 만든다.

/branch-new — master 기준 새 브랜치 생성

이 파일은 전역 `~/.claude/commands/branch-new.md`를 **오버라이드**합니다. 이 레포의 베이스 브랜치는 `develop`이 아니라 `master`입니다. (참고: [docs/branch-strategy.md](../../docs/branch-strategy.md))

동작

  1. 현재 브랜치를 확인한다 (git branch --show-current).
  2. 현재 브랜치가 master아니라면 git checkout master로 이동한다.
    • 작업 중인 변경사항이 있다면 사용자에게 stash/commit 여부를 먼저 확인한다.

Alternatives in Git

  • Ws Reset — Reset the current branch to main, fetch upstream, and update submodules 38.1k ★
  • Clean Worktrees (Automatic) — Automatically remove all worktrees for branches merged into master 25.5k ★
  • Git Master 24.1k ★

Full documentation available on GitHub

View Source Repository