{"thread":{"id":"50828","subject":"Unable to change remote url of origin","startedAt":"2019-03-27T12:34:41Z","lastAt":"2019-03-28T11:57:18Z","messageCount":6,"participants":["Petr Bena","Kevin Daudt","Andreas Schwab"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"372573","messageId":"7b30ebfd-4f85-0fa7-8e66-7e63d7cb52d9@bena.rocks","threadId":"50828","inReplyTo":null,"subject":"Unable to change remote url of origin","fromName":"Petr Bena","fromEmail":"petr@bena.rocks","sentAt":"2019-03-27T12:25:27Z","receivedAt":"2019-03-27T12:34:41Z","isPatch":false,"sender":{"key":"petr@bena.rocks","avatar":null},"body":"Hello,\n\nI used to change remote URL simply by editing .git/config (which may not \nbe most correct way), but out of sudden I am no longer able to do that. \nSo I decided to do it the \"proper way\" but still - to no avail. Here is \nwhat I do and also it's visible what is wrong:\n\n# Display remote URL\n\npetr.bena@MacBook:~/Documents/grumpy$ git remote -v\norigin    git@github.com:grumpy-irc/grumpy (fetch)\norigin    git@github.com:grumpy-irc/grumpy (push)\n\n#Now change it to HTTPS instead of SSH\n\npetr.bena@MacBook:~/Documents/grumpy$ git remote set-url origin \nhttps://github.com/grumpy-irc/grumpy\n\n# Verify if it has changed\n\npetr.bena@MacBook:~/Documents/grumpy$ git remote -v\norigin    git@github.com:grumpy-irc/grumpy (fetch)\norigin    git@github.com:grumpy-irc/grumpy (push)\n\n\nIt's still SSH. What am I doing wrong?\n\npetr.bena@MacBook:~/Documents/grumpy$ git --version\ngit version 2.21.0\n\n\npetr.bena@MacBook:~/Documents/grumpy$ cat .git/config\n[core]\n     repositoryformatversion = 0\n     filemode = true\n     bare = false\n     logallrefupdates = true\n     ignorecase = true\n     precomposeunicode = true\n[submodule]\n     active = .\n[remote \"origin\"]\n     url = https://github.com/grumpy-irc/grumpy\n     fetch = +refs/heads/*:refs/remotes/origin/*\n[branch \"master\"]\n     remote = origin\n     merge = refs/heads/master\n[submodule \"src/libgp\"]\n     url = http://github.com/grumpy-irc/libgp\n[submodule \"src/libirc\"]\n     url = http://github.com/grumpy-irc/libirc\n[branch \"remote_scripts\"]\n     remote = origin\n     merge = refs/heads/remote_scripts\n\n"},{"id":"372574","messageId":"20190327125737.GA20395@alpha","threadId":"50828","inReplyTo":"7b30ebfd-4f85-0fa7-8e66-7e63d7cb52d9@bena.rocks","subject":"Re: Unable to change remote url of origin","fromName":"Kevin Daudt","fromEmail":"me@ikke.info","sentAt":"2019-03-27T12:57:37Z","receivedAt":"2019-03-27T12:57:40Z","isPatch":false,"sender":{"key":"me@ikke.info","avatar":"https://avatars.githubusercontent.com/u/135698?v=4"},"body":"On Wed, Mar 27, 2019 at 01:25:27PM +0100, Petr Bena wrote:\n> Hello,\n> \n> I used to change remote URL simply by editing .git/config (which may not be\n> most correct way), but out of sudden I am no longer able to do that. So I\n> decided to do it the \"proper way\" but still - to no avail. Here is what I do\n> and also it's visible what is wrong:\n> \n> # Display remote URL\n> \n> petr.bena@MacBook:~/Documents/grumpy$ git remote -v\n> origin    git@github.com:grumpy-irc/grumpy (fetch)\n> origin    git@github.com:grumpy-irc/grumpy (push)\n> \n> #Now change it to HTTPS instead of SSH\n> \n> petr.bena@MacBook:~/Documents/grumpy$ git remote set-url origin\n> https://github.com/grumpy-irc/grumpy\n> \n> # Verify if it has changed\n> \n> petr.bena@MacBook:~/Documents/grumpy$ git remote -v\n> origin    git@github.com:grumpy-irc/grumpy (fetch)\n> origin    git@github.com:grumpy-irc/grumpy (push)\n> \n> \n> It's still SSH. What am I doing wrong?\n> \n> petr.bena@MacBook:~/Documents/grumpy$ git --version\n> git version 2.21.0\n> \n> \n> petr.bena@MacBook:~/Documents/grumpy$ cat .git/config\n> [core]\n>     repositoryformatversion = 0\n>     filemode = true\n>     bare = false\n>     logallrefupdates = true\n>     ignorecase = true\n>     precomposeunicode = true\n> [submodule]\n>     active = .\n> [remote \"origin\"]\n>     url = https://github.com/grumpy-irc/grumpy\n>     fetch = +refs/heads/*:refs/remotes/origin/*\n> [branch \"master\"]\n>     remote = origin\n>     merge = refs/heads/master\n> [submodule \"src/libgp\"]\n>     url = http://github.com/grumpy-irc/libgp\n> [submodule \"src/libirc\"]\n>     url = http://github.com/grumpy-irc/libirc\n> [branch \"remote_scripts\"]\n>     remote = origin\n>     merge = refs/heads/remote_scripts\n> \n\nHello Petr,\n\nWhat does git config --show-origin remoe.origin.url return?\n\nKind regards, Kevin\n"},{"id":"372575","messageId":"1af53933-86ad-6272-c564-087a462d7336@bena.rocks","threadId":"50828","inReplyTo":"20190327125737.GA20395@alpha","subject":"Re: Unable to change remote url of origin","fromName":"Petr Bena","fromEmail":"petr@bena.rocks","sentAt":"2019-03-27T13:01:19Z","receivedAt":"2019-03-27T13:01:24Z","isPatch":false,"sender":{"key":"petr@bena.rocks","avatar":null},"body":"On 27/03/2019 13:57, Kevin Daudt wrote:\n> On Wed, Mar 27, 2019 at 01:25:27PM +0100, Petr Bena wrote:\n>> Hello,\n>>\n>> I used to change remote URL simply by editing .git/config (which may not be\n>> most correct way), but out of sudden I am no longer able to do that. So I\n>> decided to do it the \"proper way\" but still - to no avail. Here is what I do\n>> and also it's visible what is wrong:\n>>\n>> # Display remote URL\n>>\n>> petr.bena@MacBook:~/Documents/grumpy$ git remote -v\n>> origin    git@github.com:grumpy-irc/grumpy (fetch)\n>> origin    git@github.com:grumpy-irc/grumpy (push)\n>>\n>> #Now change it to HTTPS instead of SSH\n>>\n>> petr.bena@MacBook:~/Documents/grumpy$ git remote set-url origin\n>> https://github.com/grumpy-irc/grumpy\n>>\n>> # Verify if it has changed\n>>\n>> petr.bena@MacBook:~/Documents/grumpy$ git remote -v\n>> origin    git@github.com:grumpy-irc/grumpy (fetch)\n>> origin    git@github.com:grumpy-irc/grumpy (push)\n>>\n>>\n>> It's still SSH. What am I doing wrong?\n>>\n>> petr.bena@MacBook:~/Documents/grumpy$ git --version\n>> git version 2.21.0\n>>\n>>\n>> petr.bena@MacBook:~/Documents/grumpy$ cat .git/config\n>> [core]\n>>      repositoryformatversion = 0\n>>      filemode = true\n>>      bare = false\n>>      logallrefupdates = true\n>>      ignorecase = true\n>>      precomposeunicode = true\n>> [submodule]\n>>      active = .\n>> [remote \"origin\"]\n>>      url = https://github.com/grumpy-irc/grumpy\n>>      fetch = +refs/heads/*:refs/remotes/origin/*\n>> [branch \"master\"]\n>>      remote = origin\n>>      merge = refs/heads/master\n>> [submodule \"src/libgp\"]\n>>      url = http://github.com/grumpy-irc/libgp\n>> [submodule \"src/libirc\"]\n>>      url = http://github.com/grumpy-irc/libirc\n>> [branch \"remote_scripts\"]\n>>      remote = origin\n>>      merge = refs/heads/remote_scripts\n>>\n> Hello Petr,\n>\n> What does git config --show-origin remoe.origin.url return?\n>\n> Kind regards, Kevin\n\n\nHello Kevin,\n\npetr.bena@MacBook:~/Documents/grumpy$ git config --show-origin \nremote.origin.url\nfile:.git/config    https://github.com/grumpy-irc/grumpy\n\nHowever git push is still accessing SSH version (which is blocked by FW \nin this place):\n\npetr.bena@MacBook:~/Documents/grumpy$ git push -v\nPushing to git@github.com:grumpy-irc/grumpy\n\nI need to change it to HTTPS\n\n"},{"id":"372584","messageId":"87ef6sb102.fsf@igel.home","threadId":"50828","inReplyTo":"7b30ebfd-4f85-0fa7-8e66-7e63d7cb52d9@bena.rocks","subject":"Re: Unable to change remote url of origin","fromName":"Andreas Schwab","fromEmail":"schwab@linux-m68k.org","sentAt":"2019-03-27T18:55:41Z","receivedAt":"2019-03-27T18:55:48Z","isPatch":false,"sender":{"key":"schwab@linux-m68k.org","avatar":"https://avatars.githubusercontent.com/u/2175493?v=4"},"body":"On Mär 27 2019, Petr Bena <petr@bena.rocks> wrote:\n\n> # Display remote URL\n>\n> petr.bena@MacBook:~/Documents/grumpy$ git remote -v\n> origin    git@github.com:grumpy-irc/grumpy (fetch)\n> origin    git@github.com:grumpy-irc/grumpy (push)\n>\n> #Now change it to HTTPS instead of SSH\n>\n> petr.bena@MacBook:~/Documents/grumpy$ git remote set-url origin\n> https://github.com/grumpy-irc/grumpy\n>\n> # Verify if it has changed\n>\n> petr.bena@MacBook:~/Documents/grumpy$ git remote -v\n> origin    git@github.com:grumpy-irc/grumpy (fetch)\n> origin    git@github.com:grumpy-irc/grumpy (push)\n>\n>\n> It's still SSH. What am I doing wrong?\n\nDo you have a URL rewrite rule (url.*.insteadof)?\n\nAndreas.\n\n-- \nAndreas Schwab, schwab@linux-m68k.org\nGPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1\n\"And now for something completely different.\"\n"},{"id":"372608","messageId":"9b48cd30-8e61-3c0e-292f-ac22c6d3b27d@bena.rocks","threadId":"50828","inReplyTo":"87ef6sb102.fsf@igel.home","subject":"Re: Unable to change remote url of origin","fromName":"Petr Bena","fromEmail":"petr@bena.rocks","sentAt":"2019-03-28T09:05:45Z","receivedAt":"2019-03-28T09:05:59Z","isPatch":false,"sender":{"key":"petr@bena.rocks","avatar":null},"body":"On 27/03/2019 19:55, Andreas Schwab wrote:\n> Do you have a URL rewrite rule (url.*.insteadof)?\n>\n> Andreas.\n>\nI don't know. How do I figure that out? There is nothing like this in my \n~/.ssh/config\n"},{"id":"372611","messageId":"0ff79a1b-0c5f-397c-dd68-94234a2a9ac4@bena.rocks","threadId":"50828","inReplyTo":"9b48cd30-8e61-3c0e-292f-ac22c6d3b27d@bena.rocks","subject":"Re: Unable to change remote url of origin","fromName":"Petr Bena","fromEmail":"petr@bena.rocks","sentAt":"2019-03-28T11:57:11Z","receivedAt":"2019-03-28T11:57:18Z","isPatch":false,"sender":{"key":"petr@bena.rocks","avatar":null},"body":"On 28/03/2019 10:05, Petr Bena wrote:\n> On 27/03/2019 19:55, Andreas Schwab wrote:\n>> Do you have a URL rewrite rule (url.*.insteadof)?\n>>\n>> Andreas.\n>>\n> I don't know. How do I figure that out? There is nothing like this in \n> my ~/.ssh/config\nOh you were right I found it in git config --list, removing this from \n.gitconfig fixed the problem, no idea how did it get in there\n"}]}