npm module for this old but handy binary https://github.com/git/git/blob/master/contrib/workdir/git-new-workdir