15

Git Best Practices

The last chapter of Mastering Git presents a collection of generic and Git-specific version control recommendations and best practices. You have encountered many of these recommendations already in the earlier chapters; they are here as a summary and as a reminder. For details and the reasoning behind each best practice, refer to the specific chapters.

This chapter will cover the issues of managing the working directory, creating commits and series of commits (pull requests), submitting changes for inclusion, and the peer review of changes.

In this chapter, we will cover the following topics:

  • How to separate projects into repositories
  • What types of data to store in a repository and which files Git should ignore
  • What to ...

Get Mastering Git - Second Edition 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.