Recently I worked on a project to automate a git workflow. Specifically for any local git repository (whose
origin points to some project on GitHub), we wanted to script-ify the following: create a new branch off prod, make some commits, push these, and make a pull request.
This sounded like a simple enough task (and it turned out so thanks to GitPython), but it took quite a few Stack Overflow posts and trial-and-error to put the whole script together. So I’m sharing this in hopes of earning someone out there a well-deserved coffee break.
Oh by the way we are…