``` python Python 3.10.1 (main, Dec 12 2021, 12:17:52) [GCC 10.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import git >>> git.__version__ '3.1.27' >>> repo = git.Repo.init(".") >>> remote = repo.create_remote("name", "url") >>> remote.set_url("newurl", old_url=remote.url) <git.Remote "name"> >>> remote.url 'url' >>> repo.remote(remote.name).url 'newurl' ```