Extract git mixin into its own module

Fixes #1208
Merge pull request #1209 from berkshelf/sethvargo/git_check

Extract git mixin into its own module