We had one machine that was doing this, while another wasn't. The one that was working had git for windows installed, the one that wasn't working had Github Desktop installed. Uninstalling Github desktop and installing Git for windows fixed the problem on the machine that wasn't working. I did not have to run the solution suggested by @Jack_Hu