DEV Community

Discussion on: What tense do you use in Git Commit messages?

Collapse
 
derek profile image
derek • Edited

Because Tower and Git Kraken have character limits in subject lines...

I too am guilty of using emojis ๐Ÿ˜€ ie:

  • ๐Ÿณ(docker)
  • ๐Ÿ“ฆ(package)
  • ๐Ÿ›(bug)
  • ๐Ÿ”ง(fix)
  • โš  (warn)
  • ๐Ÿšง (WIP)
  • ๐Ÿ‘€(need more eyes on it)
  • โ“(questionable code, probably need to refactor)

I also use shell cmd abbreviations:

  • rm = remove
  • cp = copy
  • mv = moved/renamed
  • * = wildcard things

I love Tower and Git Kraken because it's easy to select the specific lines to group LOC that is coherent to the given context of the commit.

In the commit body I try to use numbers as a convention:

ie:

  1. What: Create an Eat() fn.
    • Feeds a ๐Ÿค–
  2. Why: Fuels ๐Ÿค–to calculate numbers
    • If ๐Ÿค–doesn't eat, it doesn't calculate
    • A ๐Ÿ˜€ ๐Ÿค–is a productive ๐Ÿค–
  3. How: Mostly uses ๐ŸŒฎs and ๐Ÿฒ
    • Uses a ๐Ÿฆ„library
    • Definitely ๐ŸŽฉ in that ๐Ÿฆ„library