Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Show HN: Generate a Git Repo from a Google Doc (repography.com)
2 points by arraypad on Feb 28, 2023 | hide | past | favorite | 1 comment
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.



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




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: