The gitoperations module is a Golang library for interacting with git via the command line executable. There are other golang approaches to git integration such as a pure Golang implementation (go-git) or a wrapper around a C library (git2go). Gitoperations takes the approach of driving the actual git command line executable. One motivation for this approach is that git plumbing is designed to be scriptable.
The functions provided have been built up organically based on needs of the author, but are not exhaustive. The library is designed using an interface to support easy mocking in your application unit tests.