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.
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
5 years ago