How do I get out of a >> prompt in powershell when I made a mistake?
问题 I use powershell with git for the poshgit features and sometimes I'll make an error typing the git command like git commit -m 'something and for get to close the ' before hitting enter. It goes to the new line I type ' and hit enter and I still get the >> prompt. Is there any easy way to say give me back a new prompt and get out of the infinite >> loop with out closing powershell? 回答1: Press ctrl + C . 回答2: @jon Z 's answer tells you how to abort it, but what you want is to hit enter at the