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?
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.
That means that the console is waiting for more input. You've probably got a missing } somewhere.
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.
You can also use the shortcut key Alt + F4 to close a Command Prompt window.
Press ctrl+C.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With