Empty Commit In Git
Jan 11, 2022
Syntax: Empty commit with message
$ git commit --allow-empty -m "this is empty commit"
Why would we want an empty commit?
- You need to trigger a build step in CI/CD case.
- You are starting a new branch for a feature.
Syntax: Empty commit with message
$ git commit --allow-empty -m "this is empty commit"
Why would we want an empty commit?