my co-worker has just create a new branch in the git repository which we have been working for a while. but in my local repository, I am having a hard time to get the new branch and merge it into my local repos. I found this post: Only master branch is visible after cloning a Git repo, but it did not work for me.
- when I try
git branch -r
, I don't see the new branch name listed, - when I try
git fetch
, it says no remote repos specified, - when I try
git fetch newbranchname
, it saysnewbranchname
does not appear to be a repos, - when I try
git chechout newbranchname
, it saysnewbranchname
did not match any file known to git.
what else can I try? please kindly help me, thanks a lot.