From: Johannes Sixt <j6t@kdbg.org>
To: Sivanandan Srilakshmanan <ssrilaks@gmail.com>
Cc: Pratyush Yadav <me@yadavpratyush.com>, git@vger.kernel.org
Subject: Re: working directory status
Date: Sun, 17 Nov 2019 13:30:28 +0100 [thread overview]
Message-ID: <e5f25791-694d-6b5c-138b-ac99b4f50b13@kdbg.org> (raw)
In-Reply-To: <CACKP9cs+eJMtwWJtc3c_TXOUacpaxHUP4Ugw5oSpDfKcABaR7g@mail.gmail.com>
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
next prev parent reply other threads:[~2019-11-17 12:30 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-17 0:55 working directory status Sivanandan Srilakshmanan
2019-11-17 7:29 ` Pratyush Yadav
2019-11-17 11:07 ` Sivanandan Srilakshmanan
2019-11-17 12:30 ` Johannes Sixt [this message]
2019-11-17 20:33 ` Sivanandan Srilakshmanan
2019-11-17 22:26 ` Johannes Sixt
2019-11-18 4:32 ` Sivanandan Srilakshmanan
2019-11-18 6:51 ` Johannes Sixt
2019-11-18 7:01 ` Eric Sunshine
2019-11-18 7:12 ` Junio C Hamano
2019-11-18 10:40 ` Sivanandan Srilakshmanan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e5f25791-694d-6b5c-138b-ac99b4f50b13@kdbg.org \
--to=j6t@kdbg.org \
--cc=git@vger.kernel.org \
--cc=me@yadavpratyush.com \
--cc=ssrilaks@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).