[Dugite](https://github.com/desktop/dugite) is a better package for interacting with git than my current process. This is what the github package uses, for example. Uplift the code to it.