How To Understand And Write Git Command Messages


show more Writing commit messages provides you with in-depth training on Developer. Taught by Kevin Skoglund as part of the Git Essential Training show less
please wait ...

Writing commit messages

In this movie I want us to talk about writing commit messages and the best practices for doing that. Now in the last movie we did our first commit, and we gave it a really simple single-line commit message that was just initial commit, pretty bland and boring and even worse, it doesn't really describe what we were doing. What you really want to do is have a commit message that describes the changes that you're making in that commit set, so added file to project, that would be more descriptive saying that we added this first file. That you added the JavaScript to something, that you were fixing a bug.

We are labeling what we were doing in this change set so when we come back and look at it later, we can just look at the commit message and know what's inside, what's contained in that set. So we want to have good descriptive commit messages. There are also some other best practices that we should follow. We want to start with a short single-line summary, less than 50 characters, keep it...

Writing commit messages
Video duration: 5m 22s 6h 25m Beginner

Viewers:

Writing commit messages provides you with in-depth training on Developer. Taught by Kevin Skoglund as part of the Git Essential Training

Subject:
Developer
Software:
Git GitHub
Author:
please wait ...