GIT_DIR output from git worktree list
- From
Gabriel Nützi <gnuetzi@gmail.com>
- Date
- Sep 29, 2020, 17:30 UTC
- Message-ID
- <CAA9rTudStQOK7kRa6jYJHE3D3grnFF3idQe65h9t6oJB30xa1A@mail.gmail.com>
Hello,
When you do move the .git folder somewhere else:
git init Test && cd Test && mv .git .git-b
and then do
cd Test && git --git-dir=.git-b --work-tree . worktree list
the output is : ..../Test/.git-b 0000000 [master]
Why is the output a .git Dir and not a worktree. I expected `.../Test`.
Thanks for the help. BR Gabriel