gitdir
gitdir copied to clipboard
Does it work for private repos?
I have access to my students's private repos, and i usually need to download specific folders of their repos. This tool seems great, but it apparently does not work with private repos (i do have access though).
I have not tested this on private repos. But I think we would have to pass the credentials (username and password) with the requests in order for you to access the private repo. I will try find a way to make a way to let users login if it a private repo :)
@sdelquin Do you know how to login to GitHub with Python? Im not able to do it for some reason.
Not really :/
@sdelquin I dont think private repos will work. Also, I dont plan to support private repos. :crying_cat_face:
You can login to GitHub using the python GitHub API https://github.com/PyGithub/PyGithub
@SelfhostedPro Very interesting! I will have to take a look at the documentation to see it is able to get files from a branch or get the files of folder in a the given repo
This is something we have to be aware of: https://developer.github.com/changes/2020-02-14-deprecating-password-auth/
PyGithub enables you to use Access tokens so you don't need to worry about that deprecation.