git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Unable to change remote url of origin

From
Andreas Schwab <schwab@linux-m68k.org>
Date
Mar 27, 2019, 18:55 UTC
Message-ID
<87ef6sb102.fsf@igel.home>
In-Reply-To
<7b30ebfd-4f85-0fa7-8e66-7e63d7cb52d9@bena.rocks>
On Mär 27 2019, Petr Bena <petr@bena.rocks> wrote:
Show 19 quoted lines
> # Display remote URL
>
> petr.bena@MacBook:~/Documents/grumpy$ git remote -v
> origin    git@github.com:grumpy-irc/grumpy (fetch)
> origin    git@github.com: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@github.com:grumpy-irc/grumpy (fetch)
> origin    git@github.com: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@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."
Previous: Petr BenaNext: Petr Bena
Message 4 of 6 in “Unable to change remote url of origin”
  1. Petr BenaMar 27, 2019
  2. Kevin DaudtMar 27, 2019
  3. Petr BenaMar 27, 2019
  4. Andreas SchwabMar 27, 2019
  5. Petr BenaMar 28, 2019
  6. Petr BenaMar 28, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.