libgit2

git_remote_save

Version:

Save a remote to its repository's configuration

One can't save a in-memory remote. Doing so will result in a GIT_EINVALIDSPEC being returned.

Signature

int git_remote_save(const git_remote *remote);

Parameters

In
remote

the remote to save to config

Returns

int

0, GIT_EINVALIDSPEC or an error code

Versions