From the course: AI-Powered Development: GitHub Copilot in Visual Studio

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Write smarter commit messages

Write smarter commit messages

- [Instructor] Commit messages are one of those things that every developer writes, but not always well. The good news is large language models are really good at generating text. Whether it's writing a code comment, adding documentation or summarizing code changes, they can do it quickly and clearly. And that's exactly what makes it great for writing commit messages. Copilot knows the project. For example, in this project, you can see that I've changed the customer's details page and the testimonials index page. Copilot knows this project, it knows what's changed, and it can read information from Git. It looks at the code deltas, figures out what's different since the last commit and then writes a clean summary for us. So let's try this. We'll go up to the commit message, click on this pencil icon and generate our first commit message. I get a summary at the top. There was two actions happened in this refactoring…

Contents