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
Sign up for our newsletter and get our top new questions delivered to your inbox (see an example).
You can use dd to delete the whole current line, whether it is empty or not.
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
4 years ago