I am making a git post-commit hook to post my commit messages to Twitter.I have set up the hook on the server, which means it only runs when I call git push.
I\'m using the GitPython package to access a Git repository from Python. This pulls in the async package. In async/__init__.py, the following happens:
I\'m trying to get GitPython 0.3 to commit a file to a repository. Roughly, I\'m doing this as follows:
I don\'t see an option to checkout or list remote/local branches in this module: https://git开发者_开发百科python.readthedocs.io/en/stable/For those who want to just print the remote branches: