Saturday, May 4, 2024
191
rated 0 times [  191] [ 0]  / answers: 1 / hits: 46357  / 3 Years ago, fri, july 23, 2021, 6:15:42

Consider the following bash prompt, where ^ denotes the prompt location:



$ git commit -am "[bug 123456] Do this and that with the bug"
^


Suppose that I want to commit again to the same bug, with a different commit message. Is there a way to delete the text from the cursor position till the end of line?


More From » command-line

 Answers
3

Use Ctrl+K to delete from the cursor to the end of the line.



Use Ctrl+U to delete from the cursor to the beginning of the line.


[#32165] Sunday, July 25, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
aveerakfas

Total Points: 106
Total Questions: 148
Total Answers: 129

Location: Monaco
Member since Sun, Jan 1, 2023
1 Year ago
;