Skip to content

Instantly share code, notes, and snippets.

@iorionda
Last active July 14, 2023 02:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iorionda/72f7c75900e56bf4fea58d3c78d614b1 to your computer and use it in GitHub Desktop.
Save iorionda/72f7c75900e56bf4fea58d3c78d614b1 to your computer and use it in GitHub Desktop.
emoji template for git commit
# ==================== prefix ===================
# feat: 新しい機能
# fix: バグの修正
# docs: ドキュメントのみの変更
# style: 空白、フォーマット、セミコロン追加など
# refactor: 仕様に影響がないコード改善(リファクタ)
# perf: パフォーマンス向上関連
# test: テスト関連
# chore: ビルド、補助ツール、ライブラリ関連
# ==================== Emojis ====================
# 🎉 :tada: - プロジェクトの初回コミットやメジャーリリース時
# ✨ :sparkles: - 新しい機能を追加した時
# 🔧 :wrench: - バグを修正した時
# 📖 :book: - ドキュメントを追加または更新した時
# 🎨 :art: - UIやスタイルファイルを更新した時
# 🚀 :rocket: - デプロイや新リリース時
# 🧪 :test_tube: - テストを追加または更新した時
# ✅ :white_check_mark: - テストをパスさせた時
# 🛠 :hammer_and_wrench: - コードをリファクタリングした時
# 💡 :bulb: - コードのロジックを更新または改善した時
# 🗑️ :wastebasket: - コードやファイルを削除した時
# 🚧 :construction: - 作業中のコミット
# ⬆️ :arrow_up: - 依存関係を更新する時
# ⬇️ :arrow_down: - 依存関係をダウングレードする時
# 📦 :package: - パッケージを更新した時
# 🐳 :whale: - Docker関連の作業時
# 🚑 :ambulance: - 致命的なバグを修正する緊急のコミット
# 👕 :shirt: - Lintからの警告やエラーを修正した時
# 🚚 :truck: - ファイルを新しい場所に移動またはファイル名を変更した時
# 🌐 :globe_with_meridians: - 国際化と地域化の対応時
# 💬 :speech_balloon: - コードのコメントを追加または更新した時
# 🍻 :beers: - 非生産コードを書いた時
# 🥚 :egg: - バグを見つけて修正が必要な時
# 🔀 :twisted_rightwards_arrows: - ブランチをマージした時
# 📈 :chart_with_upwards_trend: - アナリティクスまたは追跡コードを追加した時
# ♿ :wheelchair: - アクセシビリティの改善
# 🏗 :building_construction: - アーキテクチャの変更
# 🧽 :sponge: - コードレビューのフィードバックを受けてコードを更新した時
# 🩹 :adhesive_bandage: - 小さなバグや問題を修正した時
# 🔒 :lock: - セキュリティ関連のアップデートや改善
# 🏷️ :label: - 型情報を追加または更新した時
# ==================== Format ====================
# :emoji: Subject
#
# Commit body..
# ==== The Seven Rules ====
# 1. Separate subject from body with a blank line
# 2. Limit the subject line to 50 characters
# 3. Capitalize the subject line
# 4. Do not end the subject line with a period
# 5. Use the imperative mood in the subject line
# 6. Wrap the body at 72 characters
# 7. Use the body to explain what and why vs. how
@iorionda
Copy link
Author

iorionda commented Dec 9, 2020

git configにテンプレートを登録します。

$ git config commit.template .gitmessage

PCに存在するGit管理のすべてのプロジェクトにテンプレートを適用したい場合は、--globalを付与して全体に適用します。
該当のプロジェクトに適用させたいだけならプロジェクトディレクトリで作業する。

@iorionda
Copy link
Author

iorionda commented Dec 9, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment