Best Practice (3/4)

6.3.1. Best Practice (3/4)#

Best Practices

  1. Keep a healthy reference

  2. Separate changes

  3. Commit complete changes

Commit small but complete changes:
  • Decide what changes to include in a commit (use git add -p).

  • Make a commit as specific as possible, i.e., include only changes that belong together.

  • Write commit messages that specify the purpose of the commit.

  • Include as few changes as possible into a commit.