Closed seekpeace closed 9 years ago
What's the output of git branch -av
?
22:48:40-seekpeace~/projects/portfolio_guard (actionmailer)$ git status On branch actionmailer nothing to commit, working directory clean 22:48:42-seekpeace~/projects/portfolio_guard (actionmailer)$ git checkout master error: pathspec 'master' did not match any file(s) known to git. 22:48:45-seekpeace~/projects/portfolio_guard (actionmailer)$ git branch -av
It's because you only have one branch, actionmailer
You don't have a master
branch.
You can rename your current branch by using git branch -m "new name here"
but i did this earlier: 15:24:14-seekpeace~/projects/portfolio_guard (master)$ git checkout -b actionmailer Switched to a new branch 'actionmailer' but ok.
ok i just renamed it to master, thanks Robin!
15:24:14-seekpeace~/projects/portfolio_guard (master)$ git checkout -b actionmailer Switched to a new branch 'actionmailer' i did the above an eon ago and now when i do 22:33:33-seekpeace~/projects/portfolio_guard (actionmailer)$ git checkout master error: pathspec 'master' did not match any file(s) known to git.
git headache to the bitter end and thank you for any assist.