Settings

Theme

Show HN: Generate a Git Repo from a Google Doc

doc2git.repography.com

2 points by arraypad 3 years ago · 1 comment · 1 min read

Reader

doc2git is a simple web app which lets you generate a Git repo from the revision history of a Google Doc.

Every revision to the doc becomes a commit to a plain text version of the doc in the Git repo, with the correct author and time.

It's web based since it has to do the OAuth dance with Google to use the Google Drive API, but it runs completely client-side from then on.

arraypadOP 3 years ago

Forgot to say that it's open source (AGPL) on GitHub [1]. I find it handy just being able to run `git blame` on a doc, but I'm sure it could be made more useful. Contributions are welcome!

The only benefit of the hosted version is that the OAuth setup is already done. If you're ok registering an OAuth app with Google (instructions in README.md) then it's trivial to run yourself. Given that there's no fine-grained permissions on Drive - it has to ask for read only access to your entire Drive just to access one doc - I completely understand wanting to run it locally.

[1]: https://github.com/repography/doc2git

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection