Skip to Content
Git Essentials ??? Second Edition - Second Edition
book

Git Essentials ??? Second Edition - Second Edition

by Ferdinando Santacroce
November 2017
Beginner
238 pages
5h 58m
English
Packt Publishing
Content preview from Git Essentials ??? Second Edition - Second Edition

Writing a meaningful subject

The subject of a commit is the most important part: its role is to make clear what the commit contains. Avoid technical details of other things - a common developer can understand opening the code, and focus on the big picture: remember that every commit is a sentence on the repository history. So, wear the hat of the changelog reader and try to write the most convenient sentence for him, not for you: use present tense, and write a 50 chars max sentence.

A good subject is one like this: "Add the newsletter signup in homepage".

As you can see, I used the imperative past tense and, more importantly, I didn't say what I had done, but what the feature does: it adds a newsletter signup box to my website.

The 50-char ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Git Version Control Cookbook - Second Edition

Git Version Control Cookbook - Second Edition

Kenneth Geisshirt, Emanuele Zattin(EUR), Aske Olsson, Rasmus Voss
Git Pocket Guide

Git Pocket Guide

Richard E. Silverman
Version Control with Git, 2nd Edition

Version Control with Git, 2nd Edition

Jon Loeliger, Matthew McCullough

Publisher Resources

ISBN: 9781787120723Supplemental Content