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

Re: How to jump between two repositories ...

From
Shawn O. Pearce <spearce@spearce.org>
Date
Dec 5, 2007, 06:11 UTC
Message-ID
<20071205061125.GE14735@spearce.org>
In-Reply-To
<C6AF7922-B2F7-42EB-B5DD-25353BC0AF2A@gmail.com>
g2 <gerald.gutierrez@gmail.com> wrote:
Show 7 quoted lines
> At this point, I wanted to push my changes back to my work repository  
> so I can continue work the next day. So at home, I did a git push. I  
> expect that my work repository has the newest material, but I find  
> that when I do "git status" at work the next day, it tells me that my  
> test.c is "modified" and has already staged it for commit. I need to  
> do a "git reset" followed by "git checkout" to update my work folder  
> to the latest stuff.

Oddly enough, this question is asked so frequently that it is answered in the GitFaq on the GitWiki:

  http://git.or.cz/gitwiki/GitFaq#head-b96f48bc9c925074be9f95c0fce69bcece5f6e73
-- 
Shawn.
Previous: g2Next: J. Bruce Fields
Message 2 of 10 in “How to jump between two repositories ...”
  1. g2Dec 5, 2007
  2. Shawn O. PearceDec 5, 2007
  3. J. Bruce FieldsDec 5, 2007
  4. Andreas EricssonDec 5, 2007
  5. g2Dec 5, 2007
  6. Andreas EricssonDec 5, 2007
  7. Väinö JärveläDec 5, 2007
  8. g2Dec 5, 2007
  9. Steven GrimmDec 5, 2007
  10. Väinö JärveläDec 5, 2007

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.