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  Random snippet

  Work with me!


Call to action

Did you like this post? You can help me back in several ways: (use the "reply" link on the right to comment or to contact me )

Thank you for reading! And see you soon on Strangebuzz! 😉

COil