Thanks to visit codestin.com Credit goes to libgit2.org
Add a remote with the provided fetch refspec (or default if NULL) to the repository's configuration.
the resulting remote
the repository in which to create the remote
the remote's name
the remote's url
the remote fetch value
0, GIT_EINVALIDSPEC, GIT_EEXISTS or an error code