I am using GitPython
to clone git repositories on Github.com
,
However the git.Repo.clone_from()
is not working, and keep asking me the usename of Github.com
import git
git.Repo.clone_from("https://github.com/aligos/belajar-rust", "belajar-rust")
I found that this is caused by the git repository, it seems some repository requires Username
and Password
authenticated before cloning.
I wonder how to deal with the prompt?