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