summaryrefslogtreecommitdiff
path: root/doc/source/tutorial.rst
diff options
context:
space:
mode:
authorJonas Trappenberg <jonas@trappenberg.ch>2015-01-20 23:19:28 -0800
committerJonas Trappenberg <jonas@trappenberg.ch>2015-01-21 21:35:19 -0800
commit261aedd2e13308755894405c7a76b72373dab879 (patch)
tree7ae091f736ede3ce0ae3e8c8e9b701b4eea4110c /doc/source/tutorial.rst
parent1287f69b42fa7d6b9d65abfef80899b22edfef55 (diff)
downloadgitpython-261aedd2e13308755894405c7a76b72373dab879.tar.gz
Add 'sshkey' context manager
Diffstat (limited to 'doc/source/tutorial.rst')
-rw-r--r--doc/source/tutorial.rst6
1 files changed, 6 insertions, 0 deletions
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