From: Geoff Russell Date: Tue, 04 Nov 2008 22:49:33 GMT Subject: Re: exporting the last N days of a repository Message-ID: <93c3eada0811041449u20e0fc74gf6a1cb420923e484@mail.gmail.com> In-Reply-To: Apologies to Johannes and Bob who have tried to help but I'm still having difficulties, here is my current non-working script: ------------------------------------------------------------------ #!/bin/sh DIR=/tmp/gitdemo # for testing just arbitrarily # select the 15th most recent commit as our new origin NEWORIGIN=$(git rev-list master@{15} | head -1) echo $NEWORIGIN # checkout earlist point we are interested in # we want to drop any history before this point git checkout $NEWORIGIN # now make a new directory, initialise with new origin # and apply all commits after that point mkdir $DIR && (cd $DIR ; git init) && \ rsync -aHv --exclude=.git ./ $DIR && \ (cd $DIR ; git add . ; git commit -m "starting point"