In git, it is possible to handle a remote name with
- character star.
For example, we can add a remote which begins with
-, update it by just using the option
-- in the git command (
-- separate between command option and the remote name).
But it doesn't work on :
git pull -- "-myremotename" "master"
And, I get this error message :
error: unknown switch `y' usage: git fetch [<options>] [<repository> [<refspec>...]]
I think that
-- option doesn't work in
git pull, because
pull is a combination of
git fetch followed by
git merge, and
-- isn't used when making this 2 commands.
Any idea to fix it ?