ブランチ戦略

効果的なブランチの使い方

ブランチの基本操作

# ブランチ作成と切り替え
git checkout -b feature/new-feature

# ブランチ一覧
git branch -a

# マージ
git merge feature/new-feature

Git Flow

  • main: 本番環境
  • develop: 開発環境
  • feature/*: 機能開発
  • hotfix/*: 緊急修正

目次