Intro (skippable score: 9/10)

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.

Actual Steps (skippable score: 1/10)

Oh by the way we are…

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store