Git development
 help / color / mirror / Atom feed
From: The Super Techie <thesupertechie1@gmail.com>
To: git@vger.kernel.org
Subject: Add a git squash function?
Date: Sun, 16 Aug 2026 11:49:50 -0700	[thread overview]
Message-ID: <bc49c03e-5a90-480e-8bfa-ad8fb8e42db2@gmail.com> (raw)

Hi,

I am a developer who often squashes their commits using Git. Currently, 
the simplest way to squash is to run the following two commands:

git reset --soft HEAD~3

git commit

Where 3 is the number of commits that a user would like to squash. 
However, what if there was a command like as follows:

git squash 3

Which did the same thing? This would save quite a bit of time for 
developers. Since some projects require the DCO, an -s flag could be 
added which would add a sign-off to the squashed commit as well.

Has this been suggested before?

~thesupertechie



             reply	other threads:[~2026-08-16 18:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-16 18:49 The Super Techie [this message]
2026-08-16 21:52 ` Add a git squash function? Matej Dujava
2026-08-16 23:38   ` Bradley Morgan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bc49c03e-5a90-480e-8bfa-ad8fb8e42db2@gmail.com \
    --to=thesupertechie1@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox