googGitHub

Replace file content and list revisions

Upload a new version of a file without changing its ID or links, and see every version Drive keeps.

v0.2.10
zsh
~/work $
Reports - Drive
drive.google.com/drive/folders/0Rp7Ts1Lm
A
My DriveReports
NameModified
PDFq3-report.pdfNov 20
PDFq2-report.pdfAug 14

Update in place

drive update uploads new content into an existing file. Drive keeps the previous version, and the name and type stay unless you change them.

$goog drive update FILE_ID ./report-v2.pdf

Guard against overwrites

--expect-modified-time or --expect-md5 refuses the update when someone changed the file since you last read it.

$goog drive update FILE_ID ./report-v2.pdf --expect-modified-time 2026-01-31T09:15:00.000Z

List revisions

drive revisions lists the stored versions of an uploaded file, oldest first.

$goog drive revisions FILE_ID
Downloads and checksums on GitHub