Hacker News new | ask | show | jobs
by samhain 1831 days ago
Someone above mentioned:

git commit --amend --allow-empty

1 comments

--allow-empty refers to the changeset [1]. You still need a message.

[1] To be precise, it allows to create a commit that has the same tree as the parent commit.

That can be fixed by using “EDITOR=true git commit --amend --allow-empty”
The default message is empty though, so not editing it will abort the commit.