Then how would you return to the current state of affairs?  git checkout master?

Nicholas K. Sauter, Ph. D.
Computer Staff Scientist, Molecular Biophysics and Integrated Bioimaging Division
Lawrence Berkeley National Laboratory
1 Cyclotron Rd., Bldg. 33R0345
Berkeley, CA 94720
(510) 486-5713

On Mon, Jun 13, 2016 at 3:55 PM, Luc Bourhis <luc_j_bourhis@mac.com> wrote:
> That's right.  In practice I bisect the date instead; that way I can issue the same command in all my svn source directories from sf.net and lbl.gov.  For example:
>
> svn update -r "{2014-03-08 18:00}”

You can do that with git as well but it looks more geeky:

git checkout `git rev-list -n 1 --before="2014-03-08 18:00” master`

although you could easily put that in a tiny script called checkout-date and then issue “git checkout-date”.

In any case, git bisect is easy to run in the simple case where you know HEAD is broken but 3c303a24 is good:

% git bisect start HEAD 3c303a24 —

This will checkout some version half-way through. You test and you find it’s broken:

% git bisect bad

If on the contrary, you find it works fine:

% git bisect good

Either of those commands will again checkout some version half-way through. Then you continue until git tells you the bisection is done.



_______________________________________________
cctbxbb mailing list
cctbxbb@phenix-online.org
http://phenix-online.org/mailman/listinfo/cctbxbb