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
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 )
- Report any error/typo.
- Report something that could be improved.
- Like and repost!
- Follow me on Bluesky 🦋
- Subscribe to the RSS feed.
- Click on the More on Stackoverflow buttons to make me win "Announcer" badges 🏅.
Thank you for reading! And see you soon on Strangebuzz! 😉
