Let's suppose I am on master branch and then I do :
git branch new_branch
git checkout new_branch
touch newFile.txt
When I do git checkout master to come back to my master branch, I expect I have a clean workspace and no trace of newFile.txt. But git automatically moves newFile.txt in my master branch.
Is this the default git behavior? How could I change it?
Thanks.