Web lists-archives.com

Re: Unable to change remote url of origin




On Mär 27 2019, Petr Bena <petr@bena.rocks> wrote:

> # Display remote URL
>
> petr.bena@MacBook:~/Documents/grumpy$ git remote -v
> origin    git@xxxxxxxxxx:grumpy-irc/grumpy (fetch)
> origin    git@xxxxxxxxxx:grumpy-irc/grumpy (push)
>
> #Now change it to HTTPS instead of SSH
>
> petr.bena@MacBook:~/Documents/grumpy$ git remote set-url origin
> https://github.com/grumpy-irc/grumpy
>
> # Verify if it has changed
>
> petr.bena@MacBook:~/Documents/grumpy$ git remote -v
> origin    git@xxxxxxxxxx:grumpy-irc/grumpy (fetch)
> origin    git@xxxxxxxxxx:grumpy-irc/grumpy (push)
>
>
> It's still SSH. What am I doing wrong?

Do you have a URL rewrite rule (url.*.insteadof)?

Andreas.

-- 
Andreas Schwab, schwab@xxxxxxxxxxxxxx
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."