From 261aedd2e13308755894405c7a76b72373dab879 Mon Sep 17 00:00:00 2001 From: Jonas Trappenberg Date: Tue, 20 Jan 2015 23:19:28 -0800 Subject: Add 'sshkey' context manager --- doc/source/tutorial.rst | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'doc/source/tutorial.rst') diff --git a/doc/source/tutorial.rst b/doc/source/tutorial.rst index c6e5626b..6ca0fd87 100644 --- a/doc/source/tutorial.rst +++ b/doc/source/tutorial.rst @@ -383,6 +383,12 @@ You can easily access configuration information for a remote by accessing option Change configuration for a specific remote only:: o.config_writer.set("pushurl", "other_url") + +You can also specify an SSH key to use for any operations on the remotes: + + private_key_file = project_dir+'id_rsa_deployment_key' + with repo.git.sshkey(private_key_file): + o.fetch() Submodule Handling -- cgit v1.2.3