Use "git branch" in webstorm

Hello,
In my project (Meteor), I create a new git branch.
Well, this branch is created and I can make a checkout on this new branch. I then create a new file in this new branch. If I do a checkout on master, I'm going on the branch master, but the file I just created in my new branch is also there !!
I must have missed something. Can someone help me ? Thank you for your answers.
Yvan COYAUD

0
1 comment

>I then create a new file in this new branch.

What did you do exactly? Did you only create it locally, or committed to Git? In the latter case (if you have added your file to Git, then committed it), the file should not be there after checking out master.

But, if the file has not been committed, it will still be available locally after check out

0

Please sign in to leave a comment.