Adding checks for git