I am using a makefile in windows to push some files on a Unix server (here a text file \"blob.txt\" in the same folder of my makefile). My makefile script is:
For those who tried removing the git bin folder from PATH and it didn't work for them, search your PATH variables for any paths containing bash.exe.
PATH
bash.exe
In my case I found a variable linking to cygwin bin folder C:\cygwin64\bin, removed it and it worked.
C:\cygwin64\bin