Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add in doco examples for how to clone a remote repo using a proxy #1328

Open
davidcba1 opened this issue Nov 25, 2024 · 0 comments
Open

Add in doco examples for how to clone a remote repo using a proxy #1328

davidcba1 opened this issue Nov 25, 2024 · 0 comments

Comments

@davidcba1
Copy link

Hey,

I'm trying to work out how to use pygit2 to clone a remote repo using a proxy, i'm looking at some of the examples and I need to define a username/password which is fine but I can't work out how to use the proxy setting as well.

I'm referencing the following articles, but going around in circles

This one for user/pass
https://www.pygit2.org/recipes/git-clone-ssh.html

This one for remotes
https://www.pygit2.org/recipes/git-clone-mirror.html

and in the doco these bits
https://www.pygit2.org/remotes.html#pygit2.Remote.connect
https://www.pygit2.org/repository.html#pygit2.clone_repository

So this is 1 asking for guidance, but also a "recipe" for how to do this for future users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant