In git, you can handle a remote name with an asterisk -.
For example, we can add a remote that starts with -, update it, simply using the option --in the git command ( --separately from the command option and the remote name).
But this does not work:
git pull -- "-myremotename" "master"
And I get this error message:
error: unknown switch `y'
usage: git fetch [<options>] [<repository> [<refspec>...]]
I think the option --does not work in git pull, because it pullis a combination git fetchthat follows git merge, and is --not used when executing these 2 commands.
Any idea to fix this?
source
share