Set the push-URL for a remote
(self, name: str, url: str)
| 512 | check_error(err) |
| 513 | |
| 514 | def set_push_url(self, name: str, url: str) -> None: |
| 515 | """Set the push-URL for a remote""" |
| 516 | err = C.git_remote_set_pushurl(self._repo._repo, to_bytes(name), to_bytes(url)) |
| 517 | check_error(err) |
| 518 | |
| 519 | def add_fetch(self, name: str, refspec: str) -> None: |
| 520 | """Add a fetch refspec (str) to the remote""" |