I am trying to checkout remote branch, but it fails with
error: pathspec 'branchName' did not match any file(s) known to git.
Git branch -a shows only the local branches and master branch but not other remote branches.
I think this is config problem but not able to sort out. Help!
Edit 1:
git remote show origin
fails with
fatal: Invalid refspec '....'
Can anyone provide a standard content for this in .git/config file?