Let's say I'm working on a master branch that has file colors.txt:
blue
red
yellow
From there I create and switch to a new branch warm and edit the same file colors.txt to:
red
yellow
orange
I don't add those changes to Staging Area, but rather switch back to master branch => GIT doesn't complain.
What I expected instead is message: "Please commit your stages or stash them before you switch branches".
Can someone tell me how did this example succeed and why am I not getting that error message I just described?