check if git is installed.

for safe, I check if git is installed