瀏覽代碼

Merge pull request #1017 from TuringTux/patch-1

Document authentication with porcelain.clone
Jelmer Vernooij 2 年之前
父節點
當前提交
4ab8972b5a
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      docs/tutorial/porcelain.txt

+ 7 - 0
docs/tutorial/porcelain.txt

@@ -24,6 +24,13 @@ Clone a repository
 ------------------
 
   >>> porcelain.clone("git://github.com/jelmer/dulwich", "dulwich-clone")
+  
+Basic authentication works using the ``username`` and ``password`` parameters:
+
+  >>> porcelain.clone(
+      "https://example.com/a-private-repo.git",
+      "a-private-repo-clone",
+      username="user", password="password")
 
 Commit changes
 --------------