Create a remote without a connected local repo
Create a remote with the given url in-memory. You can use this when you have a URL instead of a remote's name.
Contrasted with git_remote_create_anonymous, a detached remote will not consider any repo configuration values (such as insteadof url substitutions).
the remote repository's URL
0 or an error code