Table of contentsClick link to navigate to the desired location
This content has been automatically translated from Ukrainian.
We make an empty hit comit. Everyone has their own goals for this action. In my case - trigger CI.
git commit --allow-empty -m "Your commit text"
In the working branch, most likely you will write the text in English, so:
git commit --allow-empty -m "Trigger Build"
Please note the check box --allow-empty, it is he who makes the magic and allows you to commit without changing the code.
And after that you can send the code to remote:
git push origin main
main is the branch where the push will be made. Also read which stands for origin at the link if you don't know yet.
Why might an empty commit be needed?
It is usually needed to provoke (trigger ) CI or some hook. That is, running or testing running integrations, hooks, scripts, etc. without changes in the code. That is, you don't need to make any change in the code, for example, adding an empty term or some comment to make a push.
This post doesn't have any additions from the author yet.