How to do it...

We will start by setting the description of our local branch. Then, we will create the hook that can extract this information and put it in the commit message.

We have our local descriptioInCommit branch, for which we need to set a description. We will use the --edit-description Git branch to add a description to our local branch. This opens the description editor, and you can type in a message by performing the following steps:

  1. When you execute the command, the description editor will open and you can type in a message:
$ git branch --edit-description descriptioInCommit
  1. Now, type in the following message:
Remote agent not connection to server When the remote agent is trying to connect it will fail as network services ...

Get Git Version Control Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.