BlackHoleGalaxy BlackHoleGalaxy - 1 month ago 11
Git Question

Semantic git message and cleaning

In one of my node code, I must do some cleaning. For example removing unused

console.log()
functions or comments placed here during dev/debugging phase by my coworker.

I try to follow some semantic git message rules, for cleaning, as mentioned here.

For example deleting useless console.log or debugging stuff like:

console.log('Starting app.js');
debugger;


What kind of git message type should I use? Certainly not
feat:
as it's not a new feature. I'd go maybe with
refactor:
.

Answer

I'd go with chore, since this will not change the way the "production" code work.

This is not a feature, not a bugfix, not a style change... so this is kind of a default choice, but it seems right.

Comments