From: Holger Hellmuth <hellmuth@ira.uka.de>
To: Hilco Wijbenga <hilco.wijbenga@gmail.com>
Cc: Git Users <git@vger.kernel.org>
Subject: Re: The shared Git repo used by git-new-workdir
Date: Mon, 16 Jan 2012 20:15:22 +0100 [thread overview]
Message-ID: <4F14774A.40100@ira.uka.de> (raw)
In-Reply-To: <CAE1pOi3JocCoDGAmpCYdGdJN4E1nz8O4_i0MtLhwhP_axmH-uw@mail.gmail.com>
On 16.01.2012 19:57, Hilco Wijbenga wrote:
> In my working directory:
> hilco@centaur /mnt/lacie/workspaces/my-project-master
> my-project-master (master $ u=)$ git status
> # On branch master
> nothing to commit (working directory clean)
>
> In the shared repo:
> hilco@centaur ~/git-clones/my-project my-project (master +$ u=)$ git status
> # On branch master
> # Changes to be committed:
> # (use "git reset HEAD<file>..." to unstage)
> #
> # deleted: .gitattributes
> # modified: .gitignore
> # new file: ...
> ... hundreds more ...
This is related to your using two repos with the same branch
(irrespective of root repo or not).
There is nothing wrong with that per se, but if you add/commit/merge etc
in one of those two, the working directory and index of the other repo
doesn't get updated automatically. You would have to do "git reset
--hard" in that repo to get it up-to-date
If you want to avoid this just don't check out the same branch in any
two repos, root or not.
prev parent reply other threads:[~2012-01-16 19:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-14 20:59 The shared Git repo used by git-new-workdir Hilco Wijbenga
2012-01-16 18:09 ` Holger Hellmuth
2012-01-16 18:57 ` Hilco Wijbenga
2012-01-16 19:15 ` Holger Hellmuth [this message]
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=4F14774A.40100@ira.uka.de \
--to=hellmuth@ira.uka.de \
--cc=git@vger.kernel.org \
--cc=hilco.wijbenga@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.
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).