Was that in Git Bash or in "normal" Windows shell?
The explanation is as follows. On POSIX (Unix-y) systems shells (and
otehr interactive non-GUI programs) run in terminals or terminal
emulators, and those Ctrl-z, Ctrl-c and similar keyboard combos are
usually handled by the terminal. What's more, POSIX shells support the
so-called job control -- having several processes spawned from the same
shell, of which a single one can be foreground, and any number of other
processes can run in background (or be stopped). Now in typical setups,
Ctrl-z makes terminal send a special signal (SIGSTP) to the foreground
process which a) suspends it; b) makes the shell put it into background
and show you its prompt again.
On Windows, shells do not support job control, and the console
driver does not handle Ctrl-z in any special way [*].
Because of this "native" Windows builds of Vim handle Ctrl-z themselves
and spawn *another* shell to mimic the Unix-y behaviour a bit: "when
the user hits Ctrl-z it gets the command prompt".
Contrary to this, the Vim build which comes packed with Git, and which
is run when you commit from Git Bash, makes a rather Unix-y combo with
Git Bash: when you hit Ctrl-z in Git Bash, that suspends the running Vim
instance and you get back to the Bash's prompt, with something like
[+] Stopped vim
printed above the prompt.
So, what to do next:
* If that has happened in Git Bash, type "fg" without double quotes and
hit Enter -- Vim will be unsuspended and brought to foreground
("fg" is a shell's job control command meaning just that: "bring
process to _f_ore_g_round").
* If that was native Vim build and you got a shell's prompt, quit it
by typing "exit" and hitting Enter -- you'll get back to Vim.
The first option is safer anyway so I'd try it first.
Note that you can use other job control commands in Git bash such as
"jobs" to enumerate attached processes, "bg" to make the process
backgrounded via Ctrl-z continue running in the background etc.