git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: a few beginner git questions

From
TAThomas Anderson <zelnaga@gmail.com>
Date
Mar 7, 2010, 05:02 UTC
Message-ID
<15b345f1003062102l22ac2d2fn3ed5b73221bf4216@mail.gmail.com>
In-Reply-To
<20100306070533.GL2480@ece.pdx.edu>
On Sat, Mar 6, 2010 at 1:05 AM, Tait <git.git@t41t.com> wrote:
Show 12 quoted lines
>> 4. I clone git://github.com/symfony/symfony.git to c:\git\test\root
>> and clone that to c:\git\test\clone.  I then blank
>> c:\git\test\clone\README, stage it, commit it and push it and the
>> change does not appear in c:\git\test\root\README.  I then reopen Git
>> Gui and open root and there I see the blanked README as an uncommited
>> state change.  I commit it and the change still does not appear in
>> c:\git\test\root\README.  Is this what Git should be doing?
>
> You shouldn't push into a non-bare repository (unless you know what you're
> doing and really mean it). This:
>        http://git.wiki.kernel.org/index.php/GitFaq#Why_won.27t_I_see_changes_in_the_remote_repo_after_.22git_push.22.3F
> explains a bit more on the subject.

How, then, do I update code? ie. I perform my initial clone, make some changes and commit / push them. Someone else then comes along, makes some changes and commits them. The next day, I do Remote -> Fetch from -> origin to update my code to the latest in Git but c:\git\test\clone\README is exactly the same as it was before. How do I update the initial clone such that I can edit the updated files?

Previous: Dmitry PotapovNext: Dmitry Potapov
Message 6 of 9 in “a few beginner git questions”
  1. Thomas AndersonMar 6, 2010
  2. Allan WindMar 6, 2010
  3. TaitMar 6, 2010
  4. Thomas AndersonMar 7, 2010
  5. Dmitry PotapovMar 7, 2010
  6. Thomas AndersonMar 7, 2010
  7. Dmitry PotapovMar 7, 2010
  8. TaitMar 8, 2010
  9. Junio C HamanoMar 7, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.