# git checkoutやresetを実行する前に、working treeに未追跡ファイルやstaged differencesがないかgit statusで確認する

git checkoutやresetを実行する前に、working treeに未追跡ファイルやstaged differencesがないかgit statusで確認する

**Why:** 「untracked working tree files would be overwritten」「files have staged content different from both the file and the HEAD」でcheckout失敗

**How to apply:** workflow カテゴリの作業時に適用する。

_Auto-learned by session_learner.py on 2026-04-22_