Read and Read and found the solution regarding cannot upgrade to 2.4.0
git reset --hard; git clean -df;