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.