Use ctrl+z.
In general, ctrl+z is used to send EOF in Windows and ctrl+d in Linux.
Ref:- https://stackoverflow.com/questions/15673120/how-can-i-signal-eof-to-close-stdin-under-the-git-bash-terminal-on-windows-ctrl
uname -s | cut -f 1 -d '-'
See also: