git_remote_create

Add a remote with the default fetch refspec to the repository's configuration.

extern (C) nothrow @nogc
int
git_remote_create

Parameters

out_ libgit2_d.types.git_remote**

the resulting remote

repo libgit2_d.types.git_repository*

the repository in which to create the remote

name const(char)*

the remote's name

url const(char)*

the remote's url

Return Value

Type: int

0, git_error_code.GIT_EINVALIDSPEC, git_error_code.GIT_EEXISTS or an error code

Meta