Fix problem with Git confusion when the branch name is the same as file name
This issue happens when some file in the repository has the same name as a branch,
e.g. project contains some directory or another file called "myfeature"
and there is a Git branch named "myfeature"