Hi,

This might be a stupid question, but I did not find any information about it. Can I retrieve previous versions of a file? Let's say, I wanna do a "git annex get file", but considering a specific commit id. Is it possible? Are all the versions of the files kept inside .git/annex/objects?

Thanks!

To get to a specific version of a file, you need to have a tag or a branch that includes that version of the file. Check out the branch and git annex get $file.

(Of course, even without a tag or branch, old file versions are retained, unless dropped with unused/dropunused. So you could even git checkout $COMMITID.)

Comment by http://joey.kitenet.net/ Tue Apr 24 21:14:15 2012
Comments on this page are closed.