Skip to content


Monday, 3 August 2015  |  jaroslaw staniek

[Skip if you're not a git user]

You will often want to have more than one build environment in parallel, for example if you want to work on stable and various feature branches. Recommended way so far was to use a git-new-workdir script. This solution saves space (e.g. ~300MiB for a calligra branch instead of ~1200MiB) and time.

A cool update from the git guys. If you are user of the git-new-workdir as advertised here, git 2.5.0 allows to replace it with a new git-worktree built-in command.

It apparently works on Windows too because:

"A replacement for contrib/workdir/git-new-workdir does not rely on symbolic links and make sharing of objects and refs safer by making the borrowee and borrowers aware of each other. Consider this as still an experimental feature; its UI is still likely to change." (link)

Edit: of course 2.5.0 isn't the officially supported version so it's not always available for you in a binary form. There's previous solution for Windows:

Expo en Witte de Wit
CC BY-SA 2.0 anagangulo