Change your git repo source URL

Software

Say you have a git repo, and you want to change its source URL from example.com to example.com. That wouldn’t make sense, because they’re the same. But assuming for the sake of the argument, or any other Japanese alcoholic comestible beverage of your choice, you can achieve it by:

$ git remote set-url origin git://example.com/

Done and done. At least one of those were superfluous, much like the lead sentence of this article. Lead is bad.

This may be useful if the public git repository site you were using was bought by a company you find problematic, given their recent track record of software and services brought into their fold.

Author bio and support

Me!

Ruben Schade is a technical writer and IaaS engineer in Sydney, Australia who refers to himself in the third person in bios. Wait, not BIOS… my brain should be EFI by now.

The site is powered by Hugo, FreeBSD, and OpenZFS on OrionVM, everyone’s favourite cloud infrastructure provider.

If you found this post helpful or entertaining, you can shout me a coffee or buy some silly merch. Thanks!