'Git stuck on "command not found" after bad commit message

After a bad commit message with a lack of quotes, I cannot commit anything to git. How do you exit this loop?

What happened:

(.venv) admin@jps-MacBook-Pro CUBoulder-CSPB3308-Team-0-Project % git commit -m added add_baby() func to sql_functions.py

(.venv) admin@jps-MacBook-Pro CUBoulder-CSPB3308-Team-0-Project % git status

git:7: command not found: func

(.venv) admin@jps-MacBook-Pro CUBoulder-CSPB3308-Team-0-Project % git commit -m "added add_baby() func sig to sql_functions.py, built more 
testing data"    

git:8: command not found: func

(.venv) admin@jps-MacBook-Pro CUBoulder-CSPB3308-Team-0-Project % git status

git:9: command not found: func
zsh


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source