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

Re: Problem with pack

From
Jakub Narebski <jnareb@gmail.com>
Date
Aug 25, 2006, 10:41 UTC
Message-ID
<ecmk3o$sbs$1@sea.gmane.org>
In-Reply-To
<44EECEDC.7090608@op5.se>
Andreas Ericsson wrote:
Show 22 quoted lines
>>> BTW I'd recommend not syncing with unison, but with the git 
>>> transports: If your PC and Laptop are connected, you could do 
>>> something like
>>>
>>>     git pull laptop:my_project/.git
>>>   
>> Actually, the project, including the git archive gets syncronized as a 
>> part of a syncronization process including all my Documents directory 
>> (the project is in fact a LaTeX manual with somehow complex LaTeX 
>> packages and classes). Syncronizing in this way actually worked very 
>> well so far, because at once I was getting in sync all my working trees 
>> and all my repos...
>> 
> 
> The largest benefit of using git's synchronization methods is that you 
> immediately get a pack-file verification, and also that you never risk 
> overwriting anything in either repo if you've forgotten to sync between 
> the two (say you've made changes on your laptop, forgot to send them to 
> your workstation, then made changes on your workstation and then you try 
> to sync them). It's possible to recover from such a situation using the 
> lost-found tool, but it can be cumbersome, and uncommitted changes, as 
> well as changes to the working tree, are lost forever.

Unison (which if I remember correctly uses rsync, or rsync over ssh) detect such case and ask user what to do if both sides changed a file (copy from one side, copy from second side, view diff, merge,...).

But you can always tell unison to ignore git object database
  ignore = Name .git
and perhaps also ignore working directories under git control
  ignore = Path path/to/working/dir/
-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Andreas EricssonNext: Junio C Hamano
Message 3 of 6 in “Re: Problem with pack”
  1. Sergio CallegariAug 25, 2006
  2. Andreas EricssonAug 25, 2006
  3. Jakub NarebskiAug 25, 2006
  4. Junio C HamanoAug 25, 2006
  5. Junio C HamanoAug 26, 2006
  6. Junio C HamanoAug 26, 2006

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.