Chapter 5. Storing Additional Information in Your Repository

In this chapter, we will cover the following topics:

  • Adding your first Git note
  • Separating notes by category
  • Retrieving notes from the remote repository
  • Pushing Git notes to a remote repository
  • Tagging commits in the repository

Introduction

Git is powerful in many ways. One of the most powerful features of Git is that it has immutable history. This is powerful because nobody can squeeze something into the history of Git without it being noticed by the people who have cloned the repository. This also causes some challenges for developers as some developers would like to change the commit messages after a commit has been released. This is a feature that is possible in many other version control systems but because of the immutable history with Git, it has Git notes, which is essentially an extra refs/notes/commits reference in Git. Here, you add additional information to the commits that can be listed when running a git log command. You can also release the notes into a remote repository so that people can fetch the notes.

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

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