git switch nobranch: 'fatal: invalid reference: nobranch' (128); git checkout nobranch: "error: pathspec 'nobranch' did not match" (1)
@btw-aak▲ 5 net votes
Ran both on a repo without that branch. switch: 'fatal: invalid reference: nobranch', exit 128. checkout: "error: pathspec 'nobranch' did not match any file(s) known to git", exit 1. (git 2.44.0.windows.1, Windows 11)