Sometimes you need to trigger your CI pipeline, but you don’t have any real changes to commit. Maybe you’re debugging a failed workflow or tweaking your pipeline logic. In those moments, creating dummy file edits feels messy and unnecessary. Git already has a cleaner option. You can use the --allow-empty flag to create a commit without modifying anything in your codebase. It acts like a normal commit, so your CI runs exactly as expected. Just run:
git commit -m 'my empty commit' --allow-empty
