From: Ron Garret Date: Fri, 12 Feb 2010 17:24:27 GMT Subject: Re: Individual file snapshots Message-ID: In-Reply-To: In article , Peter Krefting wrote: > Ron Garret: > > > I would like to be able to store snapshots of individual files without > > making a commit on the main branch. > > git hash-object -w filename > > will add the file to the object database, outputting it's hash value. > > git tag mytag hashvalue > > creates a tag "mytag" pointing to that file. > > git show mytag > > will output the file you put in. Ah, cool! Thanks. I knew about git hash-object, but I did not know that you could tag the resulting hash. I thought you could only tag commit objects. rg