I'm using git to manage code between my local, dev and master environment. last night I pushed some data to the master from the dev environment. Today, when I started my git, it was on the master branch and when I tried to checkout to another branch (local, dev), it gave me the message:
"error: pathspec 'newLocal' did not match any file(s) known to git".
I also tried to fetch other branches but without any luck. all I can see, when I try to check the existing branches:
$ git branch -a
* master
remotes/origin/HEAD -> origin/master
remotes/origin/master
What should I do?
I also tried reflog, that only show one row.
UPDATE:
I noticed that the git is connecting to a .git library in the main project library (vagrant-joe) instead of connecting to the right library (vagrant-joe/www/joe) even though I am doing "cd ~/vagrant-joe/www/joe/". How can I force it to connect to the right library?
UPDATE 2: I manage to work it through by reinstalling Git-Bash. Now I have a new problem - Git does not know my VM's. When I try "vagrant up", I get "A Vagrant environment or target machine is required to run this command". Vagrant global-status comes up empty. is there anyway to reconnect the VM's to the git? I am using Oracle VM VirtualBox and Git-Bash.