Sometimes it is possible that while writing in Gitbash you get into > and you just can not get out of that.
It happens with me quite often while I type ' by mistake in Gitbash(See in the image).
control + C
I have not checked it in Windows. But if it does please edit that in my answer.