Breaking02 / IT
Git 2.98.0-rc0 adds a command to squash commits
Users can select a range in Git’s change history and combine it into a single commit.
Git added a way to combine a range of commits in 2.98.0-rc0, the test release published on 30 Nov. The release notes list the feature under git history, an experimental command for editing change history.
The new git history squash subcommand takes a range of commits and combines them into one. The test release’s source code is available from kernel.org’s public download directory.
In its compatibility documentation, the Git project said it plans to switch the default hash for identifying objects in new repositories from SHA-1 to SHA-256. The change is planned for Git 3.0 and depends on Git libraries, applications and hosting services supporting the new format.
The Git project has yet to publish a firm release date for 3.0. Johannes Schindelin wrote in a summary of a Git contributors’ meeting that spring 2027 was proposed as a tentative target.