Re: working directory status

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am 17.11.19 um 12:07 schrieb Sivanandan Srilakshmanan:
> Hi Pratyush,
> 
> Thank you so so so very much for responding quickly. I am learning git
> to assist my teams skill up on git.
> 
> My current version is v2.23.0 which I downloaded and installed a month
> ago. Nevertheless, I have downloaded and installed v2.24.0 and the
> problem still persists.
> 
> I have the following environment variable set
> GIT_DIR=C:\GitRepo
> GIT_HOME=C:\tools\Git

Setting GIT_DIR without also setting GIT_WORKTREE is not a supported
use-case. Therefore, ...

> C:\test\Local_Newfeature>git branch
> * Local_Kumfeature_branch
>   Local_MyTest_branch
> + Local_Newfeature_branch
> + Local_SGSfeature_branch
>   Local_feature_branch
> 
> 
> C:\test\Local_Newfeature>git worktree list
> C:\GitRepo                (bare)
> C:/test/Local_Kumfeature  b0a097e [Local_Kumfeature_branch]
> C:/test/Local_Newfeature  b0a097e [Local_Newfeature_branch]
> C:/test/Local_SGSfeature  b0a097e [Local_SGSfeature_branch]

... this does not work as expected, ....

> C:\test\Local_Newfeature>git --work-tree=C:\test\Local_Newfeature status
> On branch Local_Kumfeature_branch
> Your branch is up to date with 'Lakshman/feature_branch'.
> 
> nothing to commit, working tree clean

... but this works (--work-tree is the same as setting GIT_WORKTREE).

Nobody sets GIT_DIR during normal day-to-day work. Do not set it unless
you know what you are doing.

-- Hannes



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux