I was pushing code to master branch and switching to mybranch to fix bugs. Everything worked fine when using $git checkout master and $git checkout mybranch!
The problem is that I once typed git checkout origin instead of git checkout master when I wanted to switch from mybranch into master. Now, every time I want to return to master branch I get this error:
error: pathspec 'master' did not match any file(s) known to git
My question is: how can I get back to master branch using $git checkout master command?