Re: --work-tree does not work for git-stash

2017-09-11 Thread Allen Li
On Mon, Sep 11, 2017 at 11:32 AM, Allen Li wrote: > $ git --version > git version 2.14.1.581 > > This does not work: > > $ git --git-dir ~/foo/.git --work-tree ~/foo stash create > fatal: /usr/lib/git-core/git-stash cannot be used without a working tree. > > This does

--work-tree does not work for git-stash

2017-09-11 Thread Allen Li
$ git --version git version 2.14.1.581 This does not work: $ git --git-dir ~/foo/.git --work-tree ~/foo stash create fatal: /usr/lib/git-core/git-stash cannot be used without a working tree. This does: $ git --git-dir ~/foo/.git --work-tree ~/foo -C ~/foo stash create I found a description of