check and install git if needed