Git 2.7: a Major New Release with Many New Features and Improvements
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 remotesupports a
get-urlsubcommand that will show the URL for a given remote.
git rebaseadded a new command line option,
--no-autostash, that will override the
git worktreesupports a
listsubcommand 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 bisecthas been made to work nicely when used concurrently on multiple worktrees. Additionally, the command now supports
newsubcommands to make its use less confusing than with the previous
bisectis useful when hunting for a hard to identify state change that produced some undesired effect. It allows developers to mark a
oldcommit and a
newcommit so a binary search can be carried through those commits looking for the one that broke things.
git submodulesupports a new configuration option,
push.recurseSubmodulesto 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-demandoption on the command line, but the new
push.recurseSubmodulescan make that behaviour be the default.
git stashsupports 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
-pflag on the command line.
- On the performance front, progress has been made to rewrite
git submodulein C.
Git 2.7 includes many more changes, including 800+ commits. You can read the full list in the release notes.