How to Push Empty Commit to Remote Repository

  • To setup deployment we need some commits on repository.
  • But sometimes we need to setup deployment with empty repository
  • In this guide, We will push empty commit message to remote repository, Which allow us to setup the deployment process.
$ git commit --allow-empty -m "Empty Commit to setup deployments"
$ git push


Newsletter

Get updated when I create new content.
Unsubscribe whenever. Never any spam.

Note

I'm Tama. I turn down every ad, affiliate, and sponsor request I get. I write free resources that help people. If you enjoy my content, please consider supporting what I do.

Support my work