Add a remote with the provided fetch refspec (or default if NULL) to the repository's configuration. This calls git_remote_save before returning.
the remote's name
the remote's url
the remote fetch value
0, GIT_EINVALIDSPEC, GIT_EEXISTS or an error code