Commit only a commit message in Git. Last updated: 2018-12-16
Usually, a commit can not be empty, but you can use --allow-empty
option to do this:
# Commit only a commit message.
$ git commit --allow-empty -m 'my commit message'
Commit only a commit message in Git. Last updated: 2018-12-16
Usually, a commit can not be empty, but you can use --allow-empty
option to do this:
# Commit only a commit message.
$ git commit --allow-empty -m 'my commit message'