When I have modified my current branch and check out to a different branch, git warns me that I have not stashed or commited fails only when there is a conflict between the two branches.
How can I make git always warn me that files have not been commited before I checkout?