I had the same error and I solved by installing the latest version of Git for Windows at https://gitforwindows.org/. This might not be the correct solution for everyone. I had recently uninstalled Git for Windows not realizing that my git GUI, SourceTree, was using it.