Engineering Culture: Keeping a Clean Commit History

  • To keep a clean commit history of your code. Code is communication for both other engineers and your future self. The cleaner it is, the more sane the readers will be.
  • To utilize `git blame` to its full potential. `git blame` is a tool often used to try and figure out the latest change made to a piece of code and trace back to the commit that made the change. If there are many “fix-up” commits obfuscating the actual commit that changed the code’s behavior, it makes it very hard to understand the author’s original intention.

Interactive Rebasing to Edit Commits

  • Commit A
  • Commit B
  • Commit C
git rebase -i 400d63a771fc0eefd7409da4bfa6a1f37bfff17b^

Exploring Other Options

The Distru Team (May 2021)

--

--

--

Building the future Cannabis supply chain software! We’re a technical team looking for product-driven engineers. Our stack is React, TS, GraphQL, & Elixir :D

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Philosophy of UNIX Development

If x = “hi”, x is not “hi”

Oh! yeah! ADAX got listed at Coingecko!

Why Java is Platform Independent?

Crafting a Minimal Viable Product (MVP) with Angular on Firebase GitLab with CI/CD

Tips to Consider while Creating a World Class Mobile Testing Lab

Create VPN Kill Switch in Ubuntu using UFW

Do You Pay Too Much for Your Network Contract?

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Johnny Ji

Johnny Ji

Building the future Cannabis supply chain software! We’re a technical team looking for product-driven engineers. Our stack is React, TS, GraphQL, & Elixir :D

More from Medium

Let Others Solve Your Problems: Change Your Mindset From APIs to SPIs

The Growing Importance of Physical Addresses in an Online World

Address Verification Services

Merge Request in Git: Brand New Culture in the 21st Century

The Most Important Metric of Quality; Time