Creating a Git commit without change

Published on 2021-03-06 • Modified on 2021-03-06

In this snippet, we will see how to create a Git commit without actual changes on your files. It can be useful sometimes to force triggering some actions (branch CI...). This is, of course, something you should try to avoid when possible.

git commit --allow-empty

 More on Stackoverflow   Read the doc  View a related Tweet  Random snippet