git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sivanandan Srilakshmanan <ssrilaks@gmail.com>
To: git@vger.kernel.org
Subject: working directory status
Date: Sun, 17 Nov 2019 11:55:09 +1100	[thread overview]
Message-ID: <CACKP9ctDPFn_oqHVSO9Lfi2aMDkAtiuViCv6PvYtmag+P+oaLQ@mail.gmail.com> (raw)

Hi,

I am new to git. I have been reading the documentation on Pro Git.

I have checked out two working directory (test1 & test2) using the
"git worktree add --checkout" command.

When I run the "git status" in either (test1 or test2) on the checked
out folder, the "On branch <branch name>" displays the branch name
from the latest checkout (ie branch associated with  test2).

Could you please provide the correct syntax to display the branch name
associated with the respective folder.

Any assistance is greatly appreciated.

Thanks
Lakshman

             reply	other threads:[~2019-11-17  0:55 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-17  0:55 Sivanandan Srilakshmanan [this message]
2019-11-17  7:29 ` working directory status Pratyush Yadav
2019-11-17 11:07   ` Sivanandan Srilakshmanan
2019-11-17 12:30     ` Johannes Sixt
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CACKP9ctDPFn_oqHVSO9Lfi2aMDkAtiuViCv6PvYtmag+P+oaLQ@mail.gmail.com \
    --to=ssrilaks@gmail.com \
    --cc=git@vger.kernel.org \
    /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.
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 NNTP newsgroup(s).