days
0
-17
-7
hours
-1
-1
minutes
-2
-6
seconds
-4
-1
search
Check out Git’s latest features

Git 2.25 brings new features for partial cloning

Maika Möbus
git
© Shutterstock / silver tiger

Git 2.25 has been released. It is designed to improve partial cloning of repositories, a feature that is still considered experimental, with the new git sparse-checkout command. Let’s take a closer look and see what the version control system’s latest release has in store for us.

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.

Author
Maika Möbus
Maika Möbus has been an editor for Software & Support Media since January 2019. She studied Sociology at Goethe University Frankfurt and Johannes Gutenberg University Mainz.

Leave a Reply

avatar
400