add check git repository method