BT

InfoQ Homepage News Git 2.7: a Major New Release with Many New Features and Improvements

Git 2.7: a Major New Release with Many New Features and Improvements

Leia em português

This item in japanese

Lire ce contenu en français

Bookmarks

Two months after the release of version 2.6, Git 2.7 has been announced, bringing many new features as well as performance improvements.

Here is a selection of the major changes that Git 2.7 includes:

  • git remote supports a get-url subcommand that will show the URL for a given remote.
  • git rebase added a new command line option, --no-autostash, that will override the rebase.autostash configuration variable.
  • git worktree supports a list subcommand to display a repository’s worktree and their associated branches. Worktrees are a feature firstly included in Git 2.5 to make it easier to work on multiple branches of the same repository.
  • git bisect has been made to work nicely when used concurrently on multiple worktrees. Additionally, the command now supports old and new subcommands to make its use less confusing than with the previous bad and good subcommands. bisect is useful when hunting for a hard to identify state change that produced some undesired effect. It allows developers to mark a good/old commit and a bad/new commit so a binary search can be carried through those commits looking for the one that broke things.
  • git submodule supports a new configuration option, push.recurseSubmodules to help developers pushing changes to the main module without previously pushing their changed submodules. The same effect could be obtained by using the --recurse-submodules=on-demand option on the command line, but the new push.recurseSubmodules can make that behaviour be the default.
  • git stash supports a new configuration option, stash.showPatch, to make it always show the actual patch instead of a list of paths affected files. This behaviour could be obtained in Git 2.6 by using the -p flag on the command line.
  • On the performance front, progress has been made to rewrite git submodule in C.

Git 2.7 includes many more changes, including 800+ commits. You can read the full list in the release notes.

Rate this Article

Adoption
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

BT

Is your profile up-to-date? Please take a moment to review and update.

Note: If updating/changing your email, a validation request will be sent

Company name:
Company role:
Company size:
Country/Zone:
State/Province/Region:
You will be sent an email to validate the new email address. This pop-up will close itself in a few moments.