Skip to main content

get_remote_callbacks

Function get_remote_callbacks 

Source
pub fn get_remote_callbacks<'a>() -> Result<RemoteCallbacks<'a>>
Expand description

Build git2::RemoteCallbacks that handle credential prompts via the system credential store (SSH keys, keychain, etc.).

Uses git2_credentials::CredentialHandler which respects ~/.gitconfig credential settings and SSH agent.