How to extract a deleted name that begins with a dash

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?

+3
source share

No one has answered this question yet.

See similar questions:

:

15981
Git ?
6475
() Git
6334
Git?
4105
Git ?
3946
Git?
2996
?
2990
Git?

Source: https://habr.com/ru/post/1665710/


All Articles