Empty Commit In Git

Sachin Shelar
Jan 11, 2022

--

Syntax: Empty commit with message

$ git commit --allow-empty -m "this is empty commit"

Why would we want an empty commit?

  1. You need to trigger a build step in CI/CD case.
  2. You are starting a new branch for a feature.

--

--

Sachin Shelar
Sachin Shelar

Written by Sachin Shelar

Android | iOS | Flutter | React Native

No responses yet