Re: Newbie experience with push over ssh

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Matthieu Moy
Date: Wednesday, February 14, 2007 - 9:47 am

Bill Lear <rael@zopyra.com> writes:


[ in this case, I'd prefer using rsync ]

Well, this does not the same as being able to really use git to push.
First, you have no guarantee that the repository will be consistent
during the push. I belive the git repository format is relatively safe
with this regard since git doesn't rewrite data in-place, so the worst
that can happen is probably that someone gets a reference to a
not-yet-uploaded object.

But the real advantage of using the version control system to upload
is to avoid the case of 

$ cd /path/to/dumb/project
$ rsync ./ path:to/very/important/project/

since rsync/scp are not designed to look at the content of the
destination before overriding it. Using git, I believe such
miss-manipulation could lead to having irrelevant data in a
repository, but not to data-loss.

-- 
Matthieu
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Newbie experience with push over ssh, Matthieu Moy, (Wed Feb 14, 7:07 am)
Re: Newbie experience with push over ssh, Matthias Lederhofer, (Wed Feb 14, 7:27 am)
Re: Newbie experience with push over ssh, Joseph Wakeling, (Wed Feb 14, 9:10 am)
Re: Newbie experience with push over ssh, Bill Lear, (Wed Feb 14, 9:25 am)
Re: Newbie experience with push over ssh, Joseph Wakeling, (Wed Feb 14, 9:29 am)
Re: Newbie experience with push over ssh, Bill Lear, (Wed Feb 14, 9:34 am)
Re: Newbie experience with push over ssh, Matthieu Moy, (Wed Feb 14, 9:47 am)
Re: Newbie experience with push over ssh, Joseph Wakeling, (Wed Feb 14, 9:48 am)
Re: Newbie experience with push over ssh, Bill Lear, (Wed Feb 14, 9:54 am)
Re: Newbie experience with push over ssh, Matthieu Moy, (Wed Feb 14, 9:56 am)
Re: Newbie experience with push over ssh, Joseph Wakeling, (Wed Feb 14, 10:04 am)
Re: Newbie experience with push over ssh, Nicolas Pitre, (Wed Feb 14, 10:38 am)
Re: Newbie experience with push over ssh, Joseph Wakeling, (Wed Feb 14, 10:47 am)
Re: Newbie experience with push over ssh, Jeff King, (Wed Feb 14, 10:51 am)
Re: Newbie experience with push over ssh, Matthias Lederhofer, (Wed Feb 14, 10:52 am)
Re: Newbie experience with push over ssh, Joseph Wakeling, (Wed Feb 14, 11:00 am)
Re: Newbie experience with push over ssh, Nicolas Pitre, (Wed Feb 14, 11:03 am)
Re: Newbie experience with push over ssh, Andreas Ericsson, (Thu Feb 15, 8:35 am)