Helper library for common git-related functions