No, it is not part of your master branch, but it is not part of myBranch . It is not tracked because you never made a file. By running git status , you will see that it is listed as unrestored. Since it has never been delivered or fixed, Git cannot (and cannot) control its existence, so it remains there independently.
In addition, modified files remain between branches if they can. Else Git will give you an error when switching branches around a dirty working tree. This is again, because Git does not have an internal copy of these changes, they exist only in your file system, and not within Git, until they are committed.
Andrew Marshall
source share