Re: Individual file snapshots
- From
Peter Krefting <peter@softwolves.pp.se>
- Date
- Feb 12, 2010, 12:18 UTC
- Message-ID
- <alpine.DEB.2.00.1002121316260.10583@ds9.cixit.se>
- In-Reply-To
- <ron1-CD3223.04030512022010@news.gmane.org>
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.
-- \\// Peter - http://www.softwolves.pp.se/