" prompt in git bash How to exit from >in git bash? I mean, I copy-paste some output in git bash and am responsible for this beh...">

Recover from ">" prompt in git bash

How to exit from >in git bash? I mean, I copy-paste some output in git bash and am responsible for this behavior. I need to exit it without closing the git terminal.

+3
source share
1 answer

ctrl + c should do this. You will receive a> if you entered a double quote but did not close it. For example, you can make a comment with several lines as follows:

$ git commit -m "added stuff
> 1. this stuff
> 2. also this stuff"

But you can just press ctrl + c if you change your mind and just want to cancel the command.

+8
source

All Articles