TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Generate a Git Repo from a Google Doc

2 pointsby arraypadabout 2 years ago
doc2git is a simple web app which lets you generate a Git repo from the revision history of a Google Doc.<p>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.<p>It&#x27;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.

1 comment

arraypadabout 2 years ago
Forgot to say that it&#x27;s open source (AGPL) on GitHub [1]. I find it handy just being able to run `git blame` on a doc, but I&#x27;m sure it could be made more useful. Contributions are welcome!<p>The only benefit of the hosted version is that the OAuth setup is already done. If you&#x27;re ok registering an OAuth app with Google (instructions in README.md) then it&#x27;s trivial to run yourself. Given that there&#x27;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.<p>[1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;repography&#x2F;doc2git">https:&#x2F;&#x2F;github.com&#x2F;repography&#x2F;doc2git</a>