Git 2.28 is here and it comes with changes in terminology and these news

The new version of Git 2.28 is here and it's coming to implement some changes Related with the terminology inclusive in which previous weeks he had expressed through social networks his support and decision to make changes in the terminology that has been used for many years.

Compared to the previous version, sand adopted 317 changes in the new version, prepared with the participation of 58 developers, of which 13 participated in development for the first time.

For those unfamiliar with Git, you should know that this It is one of the most popular, reliable and high-performance version control systems, and provides flexible nonlinear development tools based on versions and merges.

To ensure history integrity and resistance to hindsight changes, implicit hashing of all previous history is used on each commit and the digital signatures of individual tag developers and confirmations can also be verified.

Git 2.28 Key New Features

Of the changes related to terminology, the integration of the new init.defaultBranch configuration to allow choosing an arbitrary default branch name.

The configuration has been added for projects whose developers want to change the term "master". For their part, GitLab and Bitbucket have adopted the default value to use the word "main" instead of "master" for main branches.

In Git, like before, run "git init" by default it continues to create the "master" branch, but this name now can be changed. For example, to change the name of the initial branch to "main or primary".

In order to do this, it is proposed to use the command:

git config --global init.defaultBranch main

On the other hand we can find that performance optimizations added based on appearance in the compromise graph file format, which is used to optimize access to information on commitments, support for Bloom filters, a probabilistic structure that allows a false definition of a missing element, but excludes the omission of an existing element.

This structure allows the user to significantly speed up the search in the change history by using the commands «git log - "Or" git blame ".

Regarding the “fetch / clone” protocol, the possibility of informing the client by the server about the need to download previously prepared packet files in addition to the transmitted packed object data has been implemented.

The Work continued on the transition to the SHA-256 hashing algorithm instead of SHA-1.

Of the other changes that stand out from this new version of Git:

  • The "git status" command provides information about the progress of the partial clone operation (little checkout).
  • For the commands of the "diff" family, a new "diff.relative" setting is proposed.
  • Checking with "git fsck" now evaluates the classification of the object tree and identifies unclassified items.
  • Simplified interface to edit sensitive information in trace output.
  • Added support for completing options to the "git switch" command in the autocomplete script.
  • Added support for passing arguments in different annotations to "git diff" ("git diff A..BC", "git diff A..BC ... D", etc.).
  • The "git fast-export –anonymize" command adds the ability to configure your own element mapping to wrap the output for easier debugging.
  • In "git gui" it is possible to open working trees from the initial dialog.

Finally if you want to know more about it, You can check the details by heading to the official announcement on the Git website and in its notice section.

The link is this.

How to install Git 2.28 on Linux?

Finally, if you want to update or install that tool We just have to open a terminal in our system and in it type one of the following commands.

Debian / Ubuntu

sudo apt-get install git

Fedora
sudo dnf install git
Gentoo

emerge --ask --verbose dev-vcs/git

Arch Linux

sudo pacman -S git

openSUSE

sudo zypper install git

Mageia

sudo urpmi git

Alpine

sudo apk add git


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.