Fix git_check method

Fixes git_check method, adds some more common gitignores