python - gitpython list all repositories -
folks, keep having trouble finding documentation on how list git repositories organization using gitpython.
grab list of current repositories have in bitbucket/github, fail find in docs. i've found pygithub3 example, nothing gitpython. since need access bitbucket repos well, pygithub3 wont work in case.
gitpython library manipulating version-control software git , has little online services github or bitbucket. in order interface either of those, need use libraries pygithub3 , python-bitbucket both offer different apis retrieving organizations, let alone repositories themselves. gitpython come in handy should want clone , manipulate fork of repository 1 of these online services.
your hypothetical workflow might this:
- retrieve repositories of github-hosted organization
xyz-corpusingpygithub3, or alternatively, repositories of bitbucket-hosted organizationuvw-corpusingpython-bitbucket - clone repositories locally using
gitpython - manipulate files
- commit , push changes remote, github-or-bitbucket-hosted repository using
gitpython
Comments
Post a Comment