Initialize git repo if git is available