How to Push an Empty Commit in Git

There are a lot of Git commands. I’m always discovering a new and useful one. This time I have found one that allows you to push an empty commit to a repository.

Why push an empty Git commit?

Git doesn’t allow you to push commits without making changes, and there are times when you don’t want to make changes but perhaps trigger a pipeline or job or build that…

--

--

Community Speaker — Lifelong Learner — Founder of the Glasgow Azure User Group

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Sarah Lean

Sarah Lean

Community Speaker — Lifelong Learner — Founder of the Glasgow Azure User Group