DEV Community

Discussion on: The Magic of Empty Git Commit

Collapse
 
mohanmukund13 profile image
Mukund Mohan

Great article! This clarifies a lot about the practical utility of empty commits. I have a question though, is there a specific scenario where using empty commits might be discouraged or considered bad practice? I'm wondering if there are any 'dos and don'ts' when it comes to using empty commits in a collaborative environment.

Collapse
 
pradumnasaraf profile image
Pradumna Saraf

Thank you. Yes, you should not be using it on the main branch and should only use it on PRs.

Some comments have been hidden by the post's author - find out more