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

Re: How to jump between two repositories ...

From
Andreas Ericsson <ae@op5.se>
Date
Dec 5, 2007, 16:19 UTC
Message-ID
<4756CF7D.6090500@op5.se>
In-Reply-To
<9F403ACE-62C0-4A6D-945C-3DA6DF0316B8@gmail.com>

post top- don't Please

g2 wrote:
Show 8 quoted lines
> 
> How do you safely push to the repository? Even if my receiving 
> repository is pristine (the last command I do is a commit), after I push 
> into it, some files in the work-tree are effectively out of date and git 
> says so by thinking they are modified and staged for commit. My original 
> set of example commands illustrates this. What set of commands do you 
> use to avoid the problem?
> 

Vanilla git-push, ofcourse. I just make sure to run "git reset --hard" in the receiving repo before using anything in it. Granted, it's "safe" because I know I never want to use any changes from those repos and not.

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231
Previous: g2Next: Väinö Järvelä
Message 6 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.