I am trying to upgrade Magento from 2.3.3 to 2.3.6 but I am getting the below error and the update is not happening.
[RuntimeException]
Failed to clone https://github.com/mageplaza/magento-2-image-optimizer.git, git was not found, check that it is installed and in your PATH env.
sh: 1: git: not found
I have deleted this extension even though the composer is still trying to download the module and I cleared the cache of the composer using the below commands.
// Clear cache composer clearcache // OR composer clear-cache
// Completely remove the cache directory sudo rm -rf ~/.composer
still, I am getting the above issue only.