First, use git switch
(Git 2.23+), not the confusing git checkout
command, which deals both with branch names and file paths.
Second, you don't switch to an "origin/xxx
" branch: that is a remote tracking branch.
You create/switch to a local branch (which can track automatically the same name if it exists on the remote side.
So if NewChanges_Wix does exists on the remote side (for example GitHub), then:
git fetch
git branch -avv
git switch -c NewChanges_Wix
But if the new branch was created locally, a simple git switch NewChanges_Wix
is enough.
You will have, later, to push it: git push -u origin NewChanges_Wix
.
Then and only then will you see an origin/NewChanges_Wix
when listing your branches (local and remote) with git branch -avv