I'm trying to ammend a commit comment on a git commit, so I git commit --amend then vi opens with text from the last commit's comment. Then I delete all of the text on the first line, but I cannot remove the newline character, how can I do that?
git commit --amend
J - Join two lines
You can use dd to delete the whole current line, whether it is empty or not.
6 years ago