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.
the remote to save to config
0, GIT_EINVALIDSPEC or an error code