'fatal: Invalid refspec' error when using glob refspecs
I work in a repo with hundreds of very active contributors and thousands of branches. In order to speed up fetches, I have my .git/config only fetch master branches and those that match start with my username
.git/config:
...
[remote "origin"]
url = [email protected]:XXX/XXX.git
fetch = +refs/heads/master:refs/remotes/origin/master
fetch = +refs/heads/nroman-*:refs/remotes/origin/nroman-*
...
Running the command GitHub: View (master) errors out with error: fatal: Invalid refspec '+refs/heads/nroman-*:refs/remotes/origin/nroman-*'
plugin version 1.2.2
Your issue make me realize that I needed to check the .git/config, in my case that file got a fetch with bad refs
It should be +refs/remotes/<USER>/[email protected]:<USER>/<REPOSITORY>.git
My bad refs was +refs/heads/[email protected]:<USER>/<REPOSITORY>.git:refs/remotes/<USER>/[email protected]:<USER>/<REPOSITORY>.git
My Commit
always have seen this error! have no resolve way
i am having same error