Create an anonymous remote
Create a remote with the given url and refspec in memory. You can use this when you have a URL instead of a remote's name. Note that anonymous remotes cannot be converted to persisted remotes.
The name, when provided, will be checked for validity.
See git_tag_create()
for rules about valid names.
the remote repository's URL
the fetch refspec to use for this remote.
0 or an error code