From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: Keeping org files under git - trimming the repository Date: Tue, 04 Aug 2009 08:31:13 -0500 Message-ID: <87r5vrln8e.fsf@fastmail.fm> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MYK3W-0003DG-6N for emacs-orgmode@gnu.org; Tue, 04 Aug 2009 09:27:54 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MYK3R-00038U-Eg for emacs-orgmode@gnu.org; Tue, 04 Aug 2009 09:27:53 -0400 Received: from [199.232.76.173] (port=34915 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MYK3R-00038M-5g for emacs-orgmode@gnu.org; Tue, 04 Aug 2009 09:27:49 -0400 Received: from out1.smtp.messagingengine.com ([66.111.4.25]:52068) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MYK3Q-0008Dt-Te for emacs-orgmode@gnu.org; Tue, 04 Aug 2009 09:27:49 -0400 In-Reply-To: (Ben Alexander's message of "Tue, 4 Aug 2009 15:10:19 +0300") 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: Ben Alexander Cc: org-mode Mailinglist Ben Alexander writes: > 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? Have you tried running either "git gc" or "git repack" on the repo? I find that running these two maintenance commands every once and a while dramatically reduces the size of the repository. Best, Matt