Remotes
- Repository.remotes
The collection of configured remotes, an instance of
pygit2.remote.RemoteCollection
The remote collection
The Remote type
The RemoteCallbacks type
The TransferProgress type
This class contains the data which is available to us during a fetch.
The Refspec type
Refspecs objects are not constructed directly, but returned by
pygit2.Remote.get_refspec()
. To create a new a refspec on a Remote, use
pygit2.Remote.add_fetch()
or pygit2.Remote.add_push()
.
Credentials
There are several types of credentials. All of them are callable objects, with the appropriate signature for the credentials callback.
They will ignore all the arguments and return themselves. This is useful for scripts where the credentials are known ahead of time. More complete interfaces would want to look up in their keychain or ask the user for the data to use in the credentials.