From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Alexander Subject: Keeping org files under git - trimming the repository Date: Tue, 4 Aug 2009 15:10:19 +0300 Message-ID: Mime-Version: 1.0 (Apple Message framework v935.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MYIqd-000734-20 for emacs-orgmode@gnu.org; Tue, 04 Aug 2009 08:10:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MYIqb-00072o-KL for emacs-orgmode@gnu.org; Tue, 04 Aug 2009 08:10:29 -0400 Received: from [199.232.76.173] (port=56379 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MYIqa-00072j-2g for emacs-orgmode@gnu.org; Tue, 04 Aug 2009 08:10:28 -0400 Received: from harley.gnservers.com ([72.52.242.16]:51303) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MYIqZ-00016R-I2 for emacs-orgmode@gnu.org; Tue, 04 Aug 2009 08:10:27 -0400 Received: from [89.120.248.150] (helo=[172.16.1.105]) by harley.gnservers.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69) (envelope-from ) id 1MYIqU-0007TL-Qv for emacs-orgmode@gnu.org; Tue, 04 Aug 2009 08:10:23 -0400 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 To: org-mode Mailinglist Hello all. This is really more of a git question, but I keep my org file stored under git and I've seen other people on this list speak of doing the same. Different people cite different benefits: + keeping home and work copies of todo.org in sync + storing todo.org on a USB stick for transport instead of using a network + safety while editing. If a slip of the fingers hits C-k on a folded line and you don't notice it for a long time, git allows you to find when that happen (git blame) and 'cherry-pick' a patch to bring the lost subtree forward in time. I don't really know how to do any of these things in git, but that's what you all say :-) 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! Just curious! (and thanks to you all for the interesting discussions and excellent tool!) -Ben