API Reference
Toggle Git remotes between https and ssh.
Classes:
|
Represents a remote repository. |
|
Toggle Git remotes between https and ssh. |
-
class
Remote
(style, domain, repo, username)[source] Bases:
object
Represents a remote repository.
- Parameters
Methods:
as_url
()Returns the
apeye.url.URL
representation of the :class;`~.Remote`.from_url
(url)Construct a
Remote
from a url.set_repo
(repo)set_username
(username)Attributes:
The domain of the remote.
The repository the remote points to.
The style of remote.
The account on the remote server which owns the repository.
-
as_url
()[source] Returns the
apeye.url.URL
representation of the :class;`~.Remote`.- Return type
- Returns
-
class
Toggler
(repo, *args, **kwargs)[source] Bases:
Repo
Toggle Git remotes between https and ssh.
Methods:
get_current_remote
([name])Return the current remote.
set_current_remote
(url[, name])Set the current remote.