gitpython git authentication using user and password
What worked well for me (worked with GitHub, self hosted BitBucket, most likely will work on GitLab too). Pre-requisites Note, that despite the name, password here is your access token generated by GitHub and NOT your GitHub password. from git import Repo full_local_path = “/path/to/repo/” username = “your-username” password = “your-password” remote = f”https://{username}:{password}@github.com/some-account/some-repo.git” Clone … Read more