How it works...

Git stores the information in the local git config file; this also means that you cannot push this information to a remote repository.

To retrieve the description for the branch, you can use the --get flag for the git config command:

$ git config --get branch.newBugFix.description 
Refactoring the Hydro controller 

The hydro controller code is currently horrible and needs to be refactored.  

This will be beneficial when we automate some tasks in Chapter 7, Enhancing Your Daily Work with Git Hooks, Aliases, and Scripts.

Remember to perform a checkout of newBugFix before you start working on it. This must be done with the Git checkout of newBugFix. If you are in a hurry, you can create and checkout a new branch in a single command. Just give the option -b to checkout.

The branch information is stored as a file in .git/refs/heads/newBugFix:

$ cat .git/refs/heads/newBugFix 
25fe20b2dbb20cac8aa43c5ad64494ef8ea64ffc 

Note that it is the same commit hash we retrieved with the git log command.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.137.192.3