I thought that a file created on one branch will not appear in any other branches until I generate or redo the branch?
Example:
I have two branches:
I am browsing the new_contact_page branch.
$ git checkout new_contact_page
Then I create a new file.
$ vi contact_page.html
Without any Git commands, I return to the Master branch.
$ git checkout master
Then I see that this contact_page.html file is also in the Wizard branches.
$ ls (contact_page.html shows up in the list!)
Should the file exist only in the new_contact_page branch?
Don p source share