D3b Technical Handbook

D3b Technical Handbook

  • Projects
  • Products
  • Units
  • Development

›Standards and Guides

Processes

  • The Feature Lifecycle

Standards and Guides

  • Branching Guide
  • Commit Guide
  • CWL Style Guide
  • Pull Request Guide
  • Repository Setup Guide
Edit

Commit Guide

Commit messages are vital in being able to navigate a code base's history as well as enable easier and more productive code reviews. There are many resources providing best practices for commit messages:

  • Git Commits
  • Standard to follow when writing git commit messages
  • git-scm Commit Guidelines

Being proficient at the following git commands will greatly help to keep commits tidy:

  • git-rebase
  • git-blame
  • git-cherry-pick

Here are more detailed how-tos using some of these commands with examples:

  • Rewriting History
  • Interactive Staging

We require commits to be prefixed with a single emoji that appropriately summarizes the gist of the commit. This is helpful in allowing one to scan through the commit log visually inside of Github or be able to perform summary analysis inside of release notes or when analyzing git activity as a whole. When adding an emoji to the commit message, use the colon-ated version as opposed to the actual unicode symbol, eg: :sparkles:. For inspiration of what emoji may be most appropriate, see the gitmoji guide.

← Branching GuideCWL Style Guide →
D3b Technical Handbook
Units
ADAPTBIX
More
d3b.centerGitHub
Copyright © 2020 The Center for Data-Driven Discovery in Biomedicine