Git 2.45 arrives with more than 540 changes and new features, know the most important ones

Git 2.45 banner

Go to 2.45

The new version of Git 2.45 arrives after two months of development and this release presents a large number of significant improvements and various new features, totaling 540 changes thanks to the participation of more than 96 contributors, 38 of them new.

For those unfamiliar with Git, it 's known as one of the most popular, reliable, and high-performance version control systems , offering flexible, non-linear development tools based on branching and merging. To maintain the integrity of the history and prevent retroactive changes, Git uses an implicit hash of the entire previous history in each commit.

Git 2.45 Key New Features

In this new version of Git 2.45 that is presented, one of the most important new features is the preliminary support for a new reference storage backend called "reftable", that allows you to more efficiently store tag and branch references in a repository. This new backend uses the block storage used by the JGit project and is optimized to handle large numbers of links. Instead of storing loose references or constantly updating a file, reftable implements a binary format to store references efficiently. By enabling the new backend with the option "--ref-format=reftable" when initializing the repository ("git init --ref-format=reftable /ruta/al/repositorio"), it is possible to accelerate search, read and write operations in repositories with a large number of links, thus improving the overall performance of the system.

Another notable change in this new version is the introduction of tools to facilitate portability between SHA-1 and SHA-256 hash-based object identifiers (especially useful during the gradual migration of a repository to SHA-256 hashes). A new object format has been proposed that allows objects to be referenced not only by the primary hash specified when initializing the repository, but also by a backup hash.

In addition to this, it also highlights the ability to set alternative prefixes for file differences, using the parameters diff.srcPrefix y diff.dstPrefix in the configuration, this allows you to indicate the state before and after a particular version of the file with custom prefixes. Alternate prefixes allow users to change how Git displays file paths before and after diffs.

As for fixes , Git 2.45 addresses several minor issues, as well as implementing optimizations to ensure optimal performance. It also improves the detection and management of missing objects, facilitates the debugging of a repository's history, and introduces improvements to reference logs.

Other notable changes in this new version include:

  • The command "git rev-list" You can now display IDs of objects that are not in the local repository, even if they are not accessible in a branch or tag. This is useful for diagnosing repository corruption.
  • The customization capacity of commit messages has been expanded, allowing multi-byte characters or strings as comment indicators.
  • New command added "git reflog list" to display known reflogs and their corresponding links to tags and branches.
  • Additionally, the configuration core.commentChar now supports multi-byte characters as comment delimiter.
  • The optionn "--comment" added to command "git config" to allow comments to be saved in the .gitconfig file and explain the gist of certain settings.
  • git config now has a new option to help document the file .gitconfig. file format .gitconfig  allows comments that begin with a with a dash of rebelliousness # , which means that everything after that # until the next new line is ignored.
  • Added option "--empty" in command "git cherry-pick" to automatically remove redundant commits, similar to the option "--empty" in git-rebase and git-am.
  • Now the command "git checkout -p" allows you to use the "@" symbol

If you are interested in learning more , you can find the details at the following link.


Add as preferred source in Google