git branches are showing the same contents
问题 I am new to git and am learning to branch and merge. When I perform the following operation: git checkout -b test a new branch is created, I am switched to that branch. When I: vim testfile and enter some text and save, testfile is created as expected. However when I then change to another branch via the following command: git checkout master or git checkout unrelatedBranch I find that the testfile also exists in these other branches with the same contents. This behavior is inconsistent with