Kevin,

Try running the following in the first site's repository:

git format-patch <since>

where <since> is the ID of the commit common to both sites. This
should generate a patch file in the first site's working directory
that contain any new commits. Copy this file (or files, for multiple
commits) into the second site's working directory and run the
following:

git am < some-file.patch

but make sure to change the filename to your actual patch file. This
will recreate the commit in the new repository.

Hope that helps,
--
Ryan

On Jan 27, 1:08 pm, Chris Stone <nightshade1...@gmail.com> wrote:
> Sounds like you want to create a patch file. Command would be git diff. I
> have not worked with patch files much beyond applying them. Can any one
> else fill in the details?
> On Jan 27, 2012 11:53 AM, "Kevin Wilson" <wkev...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Hi,
> > I have a git tree on one site, and a copy of it (from two weeks ago)
> > on a second site. I cannot access the
> > first site from the second one. The git tree on one site had some
> > commits since I made a backup
> > of it for the second site. I can of course backup the first tree and
> > override the second one.
>
> > I of course know which is the commit which is the latest when I made
> > the backup (by git log).
>
> > Is there a way that I can reproduce only the commits since that last
> > commit in the first site and copy
> > only them, and apply them, for the second site?
>
> > rgs,
> > Kevin
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Git for human beings" group.
> > To post to this group, send email to git-users@googlegroups.com.
> > To unsubscribe from this group, send email to
> > git-users+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/git-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.

Reply via email to