After I create a branch using this command. git branch new_featuregit checkout new_feature
and then using the git checkout master command will not switch to the main branch.
Error: error: pathspec 'master' did not match any file(s) known to git.
What is going on? Ask for guidance. Thanks!
This error should be that there is no
master
this branch, you can passSee what branches are currently available
or
git checkout -b master
switch back to the main branch.