def remote_set(self, url, name='<STR_LIT>'):
url = self.chomp_protocol(url)<EOL>if self.remote_get(name):<EOL><INDENT>self.run(['<STR_LIT>', '<STR_LIT>', '<STR_LIT:name>'])<EOL><DEDENT>self.run(['<STR_LIT>', '<STR_LIT>', name, url])<EOL>return self.remote_get(remote=name)<EOL>
Set remote with name and URL like git remote add.

        :param url: defines the remote URL
        :type url: str
        :param name: defines the remote name.
        :type name: str