Unable to get all branches using remote set-branches origin '*' command #3659
-
Setup
Details
cmd
No error and having all available branches
Received the following message:
only the master branch is available Doing the same on Manjaro works. mcve
see mcve |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
If you have a look at the output of The problem here is that CMD simply does not interpret the single-quote character as you probably expected. It does not treat it as a quoting anything at all. You will want to use double-quote characters instead: C:\temp\sdl>git remote set-branches origin "*" Make sure to verify the result via |
Beta Was this translation helpful? Give feedback.
-
Thank you very much. It is just as you said, with double quotes it works on Windows. |
Beta Was this translation helpful? Give feedback.
If you have a look at the output of
git config -l --local
, you will notice that the single-quote characters are still there, which means that Git will then try to pull all branches whose names start and end with a single-quote character. That does not make sense, of course, as single-quote characters are not allowed in ref names.The problem here is that CMD simply does not interpret the single-quote character as you probably expected. It does not treat it as a quoting anything at all.
You will want to use double-quote characters instead:
Make sure to verify the result via
git config -l --local
…