Video series · 19 parts
Building a CLI that syncs code projects to Google Drive: OAuth, the Drive API, concurrent uploads, a custom .gitignore parser and an incremental sync algorithm.

I start building a custom Google Drive syncer in Go because GitHub alone did not save me when my hard drive corrupted and I lost local changes that were never pushed.

I refactor the Google Drive syncer so the OAuth flow and Drive service setup live in a Drive struct with a Connect method instead of bloating main, then add a JSON config file that drives what gets synced.

I implement the upload half of my Drive Syncer by creating Google Drive folders and pushing every local file inside a configured project folder up to Drive.

I show how I make DriveSyncer handle duplicate project uploads and nested subfolders in Google Drive by deleting and re-uploading the previous project folder and creating subfolders with the correct parent IDs.

I add .gitignore-aware uploads to my Google Drive syncer so each project's ignored files and my global ignore list are skipped automatically.

I wire up automatic OAuth token refresh for the Google Drive syncer so I never have to manually re-authorize access again.

I reorganize my Google Drive syncer's Go codebase into proper packages before building the CLI, because maintenance work matters as much as shipping features.

I set up a working Go CLI with Cobra for my Google Drive sync project, moving the folder-upload logic behind a sync command.

I make DriveSyncer upload multiple project folders concurrently and add per-folder terminal progress bars. I move each folder upload into a goroutine guarded by a WaitGroup, stream UploadProgress pointers through a…

I fix the upload progress bars so they reach 100% and start building a more efficient Google Drive sync algorithm that skips unchanged files instead of deleting and re-uploading the whole project folder.

I build a queue-driven project-tree walker that maps every local file and folder to its Google Drive counterpart so the syncer can tell what changed.

I show how to make the Drive syncer skip unchanged files by adding a shouldUpload method that compares local and remote checksums, and I fix a major subfolder bug by keying subfolders on their full paths instead of…

I show how to overwrite existing Google Drive files during a project sync instead of uploading duplicate copies.

I add ghost-file deletion to my Google Drive syncer so files removed locally are also moved to Drive trash instead of lingering remotely.

I hunt down and fix three small bugs in my Google Drive sync project before building further: the project-exists query was matching any folder in the parent instead of checking the folder name, the project-tree walker…

I build a custom .gitignore parser in Go for my Google Drive sync tool, replacing the naive line-by-line matching with one that understands the full pattern syntax.

I write the shouldIgnore() function for my custom Gitignore parser in Go, deciding whether a given path should be ignored, skipped as a directory, or uploaded.

I connect my custom gitignore parser to DriveSinker's sync algorithm by replacing the old ignore checks with a single GitIgnore.shouldIgnore call.

I build a minimal Go web server on localhost:8998 to handle Google OAuth callbacks and capture the authorization code from the redirect, so re-authenticating doesn't dump you on the broken localhost page.


Dude, you’re at the bottom of my landing page.
Just book a call already if you’re that interested.
You scrolled all the way here.