Files
gh-doarakko-dotfiles-claude/commands/branch-current.md
2025-11-29 18:23:35 +08:00

682 B

現在のブランチ表示コマンド

現在のブランチ名をシンプルに表示します。

使用方法

/branch-current

動作

現在のブランチ名を表示します。

実装

#!/bin/bash

# 現在のブランチ名を取得して表示
CURRENT_BRANCH=$(git branch --show-current)
echo "$CURRENT_BRANCH"

特徴

  • シンプル: 現在のブランチ名のみを表示
  • 高速: 余計な処理なし

関連コマンド

  • /branch-main: メインブランチに移動して更新
  • /branch-switch: ブランチを切り替え
  • /branch-create: 新しいブランチを作成
  • /commit: 変更をコミット