commit 4ab8972b5a682caf7e5ec2e76689ba4636734998 from: Jelmer Vernooij via: GitHub date: Thu Sep 01 16:37:19 2022 UTC Merge pull request #1017 from TuringTux/patch-1 Document authentication with porcelain.clone commit - 84887c5611f3e47602ac37d5e255963cc43a6432 commit + 4ab8972b5a682caf7e5ec2e76689ba4636734998 blob - b85e29e5ad15aba4b3a8baf0de52769c5b564c84 blob + 84da8ebe22d04adc72f703508210b49b72bc7ce6 --- docs/tutorial/porcelain.txt +++ docs/tutorial/porcelain.txt @@ -24,7 +24,14 @@ 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 --------------