Reason: As you have created the file in the master branch after creating the feature branch.
Solution: The file created in the master, But you are trying to enter the file inside the feature branch. Here in git, the branches will not update dynamically, you need to update the branches by merging the branches
sudo git checkout feature
sudo git merge master
For more information on git commands, check out this git tutorial.