Tuesday 12 June 2018

git error pathspec did not match Remote branch not showing up in “git branch -r”

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/*


No comments:

Post a Comment

Please comment here