emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Matt Lundin <mdl@imapmail.org>
To: Ben Alexander <bva@alexanderonline.org>
Cc: org-mode Mailinglist <emacs-orgmode@gnu.org>
Subject: Re: Keeping org files under git - trimming the repository
Date: Tue, 04 Aug 2009 08:31:13 -0500	[thread overview]
Message-ID: <87r5vrln8e.fsf@fastmail.fm> (raw)
In-Reply-To: <BF2B7F9E-FAD4-4A29-AF1B-8FBB0E14AF00@alexanderonline.org> (Ben Alexander's message of "Tue, 4 Aug 2009 15:10:19 +0300")

Ben Alexander <bva@alexanderonline.org> 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

  parent reply	other threads:[~2009-08-04 13:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-04 12:10 Keeping org files under git - trimming the repository Ben Alexander
2009-08-04 12:26 ` Benjamin Andresen
2009-08-04 13:31 ` Matt Lundin [this message]
2009-08-05  6:18 ` Ian Barton
2009-08-05  6:53 ` Torsten Wagner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r5vrln8e.fsf@fastmail.fm \
    --to=mdl@imapmail.org \
    --cc=bva@alexanderonline.org \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).