From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Barton Subject: Re: Keeping org files under git - trimming the repository Date: Wed, 05 Aug 2009 07:18:41 +0100 Message-ID: <4A792441.3060506@manor-farm.org> References: Reply-To: lists@manor-farm.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MYZpo-0004ob-PJ for emacs-orgmode@gnu.org; Wed, 05 Aug 2009 02:18:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MYZpm-0004lz-OC for emacs-orgmode@gnu.org; Wed, 05 Aug 2009 02:18:48 -0400 Received: from [199.232.76.173] (port=37088 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MYZpm-0004lg-Ic for emacs-orgmode@gnu.org; Wed, 05 Aug 2009 02:18:46 -0400 Received: from li40-130.members.linode.com ([72.14.178.130]:60169) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MYZpm-0004fb-90 for emacs-orgmode@gnu.org; Wed, 05 Aug 2009 02:18:46 -0400 Received: from localhost (mail.wilkesley.org [127.0.0.1]) by li40-130.members.linode.com (Postfix) with ESMTP id 004C5CD0A for ; Wed, 5 Aug 2009 07:18:44 +0100 (BST) Received: from li40-130.members.linode.com ([127.0.0.1]) by localhost (wilkesley.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TQJJBYB0oT+t for ; Wed, 5 Aug 2009 07:18:43 +0100 (BST) Received: from [192.168.0.55] (unknown [217.146.125.41]) by li40-130.members.linode.com (Postfix) with ESMTPSA id D1B23CCF3 for ; Wed, 5 Aug 2009 07:18:42 +0100 (BST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Cc: org-mode Mailinglist > About a year ago, I decided to learn how to write "macros" in lisp and > started by teaching myself about the after-save-hook. I added a hook to > auto commit every time I saved any org file. My simple, small text file > of todo items is now a giant git repository. > > At last a question or two: Does this happen to you? What do you do? > What new git command do I need to learn in order to do it? > > Is there some way to clone my git repo onto my USB stick, but make it a > subset instead of the whole thing? That would be useful for me to learn > for other git projects! > I am not a git expert, but I think there a couple of things you can do: Create a new branch and push just the branch to your usb stick. Use git rebase to rewrite all your earlier commits into one huge commit. Using rebase is a bit like juggling chain saws while walking blindfold along a tightrope, so make sure that you pratice on a backup first. Ian.