Adds a remote with the default fetch refspec to the repository's configuration.
this |
a Repository. |
name |
the name of the new remote. |
url |
the url of the remote. |
a new Remote or null if there is an error. |