From the course: Git for Teams

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Write descriptive commit messages

Write descriptive commit messages - Git Tutorial

From the course: Git for Teams

Start my 1-month free trial

Write descriptive commit messages

- [Instructor] In this lesson, we'll talk about the importance of writing a great commit message, and how they benefit your team. Well-crafted commit messages are the best way to communicate why the commit was necessary, giving some context to the code changes. Commit messages are also very handy when looking over recent changes to the code base. Commit messages can give you a quick idea of what has changed recently. Let's walk through a demonstration that will show you how to write a great commit message. When writing commit messages, developers often use the dash M flag to specify the commit message, using the command line. Unfortunately, this normally leads to a poor commit message. In fact, we've been doing it quite a bit throughout the course, but it's only for examples to save us some time. When working with a real code base, you need a better tool for the job. To write a great commit message, we should use a text editor instead of the command line. Let's walk through how to…

Contents