[sr-dev] how to pull a version of a date?

Andrei Pelinescu-Onciul andrei at iptel.org
Fri Oct 30 14:27:14 CET 2009


On Oct 30, 2009 at 14:21, Juha Heinanen <jh at tutpro.com> wrote:
> is there a way to pull a version of sr_3.0 as it was at a certain date?
> i would like to get one before the latest branch route commits that made
> things worse.


Checkout what was on sr_3.0 1 week ago without a branch (it would be
difficult to make/commit changes):

git checkout origin/sr_3.0@{"1 week ago"}

The same thing, but creating a new local branch sr_3.0_old with the
content from 1 week ago:

git checkout -b sr_3.0_old origin/sr_3.0@{"1 week ago"}


If you know the commit id, you can use it directly instead of
origin/sr_3.0@{"1 week ago"}.

What would be interesting is to check out 44f7bf6 (the first branch
commit) and see if it works with it.

Andrei



More information about the sr-dev mailing list