I create a branch from my master. However, when I checkout into the branch and make changes, these changes appear in my master branch when I checkout back to master. Another very weird thing is that git does not force me to commit when I make changes and do checkout. How can I have a branch that is independent from the master?
I have created many branches before, but I have never run into this problem before.