Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 506
awright18 Avatar asked Jan 19 '12 14:01

awright18


People also ask

How do you get out of >> in PowerShell?

Open a PowerShell console session, type exit , and press the Enter key. The PowerShell console will immediately close. This keyword can also exit a script rather than the console session.

What does >> mean in PowerShell?

That means that the console is waiting for more input. You've probably got a missing } somewhere.

How do I switch back to the Command Prompt in PowerShell?

The most straightforward method to change to CMD is by using keyboard shortcuts. Press Ctrl + Shift + 2 while the Terminal window is in focus. This opens a new tab with the Command Prompt shell. You can now close the first tab and start working using CMD.

How do I get out of prompt?

You can also use the shortcut key Alt + F4 to close a Command Prompt window.


1 Answers

Press ctrl+C.

like image 132
jon Z Avatar answered Sep 24 '22 09:09

jon Z