Problem::
Remote branch not showing up in “git branch -r”
git error pathspec did not match
Solution:
git config -e
it will open an file
For me it was like " fetch = +refs/heads/master:refs/remotes/origin/master " before solved.
The remote section specifies also fetch rules. You could make sure something like this exists:
fetch = +refs/heads/*:refs/remotes/origin/*
Remote branch not showing up in “git branch -r”
git error pathspec did not match
Solution:
git config -e
it will open an file
For me it was like " fetch = +refs/heads/master:refs/remotes/origin/master " before solved.
The remote section specifies also fetch rules. You could make sure something like this exists:
fetch = +refs/heads/*:refs/remotes/origin/*