DEV Community

Takeshi Kondo
Takeshi Kondo

Posted on

QS - CLI tool to quickly squash your commit

Problem

When developing on GitHub, you may want to compile multiple commits into one commit.

At that time, you probably will do the following procedure:

  1. git rebase -i <commit hash>
  2. update from pick to squash
  3. update the commit message
  4. quit the editor

It is troublesome to take a lot of such interactive procedures.

Solution

I and @kamontia released QS as CLI tool.

QS helps to do these with just one command.

from: https://speakerdeck.com/chaspy/look-back-on-our-oss-activities

How to install

Choose go get or brew, your preferred way. You can also download the prebuilt binary from the release page and place it in the directory where PATH passes.

To learn more, please see the README in the repository.

Summary

QS is very powerful and simple tool to squash your commit quickly

Please use it, and I'm glad if you give us improvement requests or impressions.

Thank you!

Top comments (0)