Hacker News new | past | comments | ask | show | jobs | submit login

you could always do git commit -m "" --allow-empty



    git commit --amend --no-edit && git push -f


We may be splitting hairs given what this thread is going on about, but I strongly advocate for `--force-with-lease` as a sane default versus `-f` so that one does not blow away unexpectedly newer commits to the branch

The devil's in the details, etc, etc, but I think it's a _much_ more sane default, even for single-user setups/branches because accidents can happen and git DGAF


git commit -m "--allow-empty"


You can even allow empty messages.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: