Resolving "pathspec 'master' did not match any files known to git" When Switching Branches
Reproducing the error Start from an empty repository, create and commit on a non-master branch, then try to switch to master. $ git init . $ git switch -c dev $ printf "hello\n" > notes.txt $ git add notes.txt $ git commit -m "seed: add notes.txt on dev" $ git checkout master...