Git 2.25 brings new features for partial cloning

Share
  • January 15, 2020

Around two months have passed since the last update, and now Git 2.25 has arrived with new features and bug fixes from over 84 contributors. The highlights of the new version were presented on the GitHub blog.

SEE ALSO: GitHub will store code near North Pole for 1,000 years

Partial cloning and git sparse-checkout

Git is currently working on partial cloning, an experimental feature that is not yet supported by GitHub. Partial clones are clones of repositories without their complete contents. Sparse checkouts are lists of file path patterns to be specified when checking out repository contents.

The new command git sparse-checkout is designed to make working with partial clones and sparse checkouts easier. It supports the set, list, enable and disable subcommands, and it should replace more complicated .gitignore patterns in .git/info/sparse-checkout.

When working with very large repositories and sparse-checkout patterns, git sparse-checkout‘s “cone mode” comes in handy, which allows users to specify which paths and files should be checked out.

Further changes

In Git 2.22, --preserve-merges was replaced by --rebase-merges, and now even mentions of the older deprecated option have been completely removed in the help text.

git log has received some updates as well. You can now choose to show only the part of an email address preceding the @ in usernames, which can be useful when everyone working on a project shares the same company’s domain. Use the command git log --format='%h %C(cyan)%al %C(yellow)%s to try it out.

SEE ALSO: The trendy five: Ring in the new year with the coolest GitHub repos of December 2019

More info on Git 2.25 is available on the GitHub blog and in the release notes.

The post Git 2.25 brings new features for partial cloning appeared first on JAXenter.

Source : JAXenter