Skip to content

Git clone a repo with username and password #1632

@apepkuss

Description

@apepkuss

Hi, I am trying to use Repo.clone_from to git clone a repo. How should I specify username and password in the code? Thanks a lot!

# example code

from git.repo import Repo

url = "some_url"
path = "some_local_path"
Repo.clone_from(url, path)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions