From: Jakub Narebski <jnareb@gmail.com>
To: git@vger.kernel.org
Subject: Re: Problem with pack
Date: Fri, 25 Aug 2006 12:41:00 +0200 [thread overview]
Message-ID: <ecmk3o$sbs$1@sea.gmane.org> (raw)
In-Reply-To: 44EECEDC.7090608@op5.se
Andreas Ericsson wrote:
>>> 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
next prev parent reply other threads:[~2006-08-25 10:41 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-25 10:07 Problem with pack Sergio Callegari
2006-08-25 10:20 ` Andreas Ericsson
2006-08-25 10:41 ` Jakub Narebski [this message]
2006-08-25 10:58 ` Junio C Hamano
2006-08-26 10:09 ` Junio C Hamano
2006-08-26 10:31 ` Junio C Hamano
-- strict thread matches above, loose matches on Subject: below --
2006-08-27 17:45 Sergio Callegari
2006-08-27 18:27 ` Linus Torvalds
2006-08-27 19:26 ` Nicolas Pitre
2006-08-27 21:55 ` Junio C Hamano
2006-08-26 18:53 Sergio Callegari
2006-08-26 19:24 ` Linus Torvalds
2006-08-26 18:49 Sergio Callegari
2006-08-25 12:31 Sergio Callegari
2006-08-26 18:20 ` Linus Torvalds
2006-08-25 8:45 Sergio Callegari
2006-08-25 9:12 ` Johannes Schindelin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='ecmk3o$sbs$1@sea.gmane.org' \
--to=jnareb@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).