emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Keeping org files under git - trimming the repository
@ 2009-08-04 12:10 Ben Alexander
  2009-08-04 12:26 ` Benjamin Andresen
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Ben Alexander @ 2009-08-04 12:10 UTC (permalink / raw)
  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  
+ 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  


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-08-05  6:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2009-08-05  6:18 ` Ian Barton
2009-08-05  6:53 ` Torsten Wagner

Code repositories for project(s) associated with this public inbox


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).