Check if git is correctly installed with more efficacity