Pushing an empty commit using Git is straightforward. Git provides an optional flag on the git commit
command: --allow-empty
.
Pushing without making changes
|
|
|
|
The commit will be pushed without requiring changes.
Why is this useful?
This is useful for retrying a CI pipeline when an issue occurs with a GitHub webhook or CI service.