Hacker News new | ask | show | jobs
by AlecSchueler 854 days ago
What are the benefits of keeping it in git? Are the commit messages useful?

Not trying to knock the idea, I just can't imagine branching or reverting or being curious about the history of a to-do list. Maybe it could be cool for statistics over time.

But I'm really curious to hear how you're using it!

3 comments

I find that files under revision control have one awesome property:

they can be ruthlessly minimal.

The intermediate note-to-self stuff, the reference material, the stuff that was cancelled, all can be deleted.

But you have the peace of mind that you can get it back.

This might be especially important if it is a text file you run your life with.

My neighbor needs the name of the plumber we used. What was the amount of the bill? When did I order xyz last? What was the size of the wiper blades of my car?

> My neighbor needs the name of the plumber we used. What was the amount of the bill? When did I order xyz last? What was the size of the wiper blades of my car?

But how do you look that information up in git?

The git "pickaxe" [0] is the canonical way of searching through changes. Probably `git log -Splumber` with narrowing down by date.

[0]: https://git-scm.com/book/en/v2/Git-Tools-Searching

You can just search over all the diffs, that’s how I sometimes do it in Fork.app
I have a similar setup as far as git is concerned - I use it to push a backup of my Joplin notes (note that I don't sync multiple Joplins, just backup the current one).

Pros: pushes only the differences, keeps history, can be rolled back, works offline (push fails but commit works), offers a time log of changes.

Commit messages are not needed really - the timestamp is enough and rolling back is only for exceptional events (e.g. accidentally deleting important stuff, etc.).

It can also save you when you try a different sync solution, and you see in git status that it messed up the sync.
Synchronize between computers is easy and I can also use git client on my phone.

Hosting private repo on gitlab solves hosting.