wiki
Getting startedGuidesFAQ
1.0.0
1.0.0
  • b-it-bots wiki
  • @home
    • Getting started
      • First steps
      • Setting up your development environment
        • Configuring your editor
        • Using ssh
      • Adding your first contribution
    • Tutorials
      • Architecture
    • Guides
      • git
        • Making good commits
        • Branching model
        • Adding git aliases to make your life easier
        • Creating a release
      • SSH
      • ROS
        • Creating a new package
          • Creating a new node
        • Creating a new message, service or action
        • Testing in ROS
        • Linting
      • Coding conventions
        • C++
        • Python
      • Toolkit
        • CLion
        • Atom configuration
        • Using vim
        • TMUX - Terminal Multiplexer
    • Resources
    • FAQ
      • git
  • @work
    • 2018-05-06-navigation-atwork
    • 2018-05-06-simulation_mapping
    • How to use the RealSense2 camera
    • Getting the classifier from a data set
Powered by GitBook
On this page
  • How to write good commits
  • Commit messages

Was this helpful?

  1. @home
  2. Guides
  3. git

Making good commits

PreviousgitNextBranching model

Last updated 4 years ago

Was this helpful?

How to write good commits

You should only commit changes that are contextually related, that is your changes should be grouped in a logical way. Before pushing, you can squash your commits (see for an example).

Commit messages

Your commit messages should be descriptive, as they will appear on the CHANGELOG.rst file. It should look something like this (based on ):

The first 50 characters are used for the commit summary (A blank line, no text here) The next section can take up to 72 characters It probably makes sense to split them into smaller sentences This section contains a more detailed description of your commit Why something was added or removed and what was changed or fixed Which files or packages were involved (if there are too many, your commit is too large) (Another blank line) Bugs fixed: #1234 Implements: name_of_package

Examples of good commits

Sometimes one line is enough, as long as it provides enough information:

Remove deprecated functions from mcr_object_recognition

Some other times, a little more context is needed:

Replace topological map nodes with polygons

Old version was using a standard string as a node
Nodes are now polygons which represent the rooms in the arena
This simplifies the way we check if a pose is inside a room
and the way we associate data.
Changes:
* topological_map_ros

Fixes #3

You can read more about how to write commit messages and .

here
this
here
here