git_remote_create_detached

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).

extern (C) nothrow @nogc
int
git_remote_create_detached

Parameters

out_ libgit2_d.types.git_remote**

pointer to the new remote objects

url const(char)*

the remote repository's URL

Return Value

Type: int

0 or an error code

Meta