<div dir="ltr">Then how would you return to the current state of affairs?  git checkout master?</div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Nicholas K. Sauter, Ph. D.<br>Computer Staff Scientist, Molecular Biophysics and Integrated Bioimaging Division<div>Lawrence Berkeley National Laboratory<br>1 Cyclotron Rd., Bldg. 33R0345<br>Berkeley, CA 94720<br>(510) 486-5713<br></div></div></div></div></div>
<br><div class="gmail_quote">On Mon, Jun 13, 2016 at 3:55 PM, Luc Bourhis <span dir="ltr">&lt;<a href="mailto:luc_j_bourhis@mac.com" target="_blank">luc_j_bourhis@mac.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">&gt; That&#39;s right.  In practice I bisect the date instead; that way I can issue the same command in all my svn source directories from <a href="http://sf.net" rel="noreferrer" target="_blank">sf.net</a> and <a href="http://lbl.gov" rel="noreferrer" target="_blank">lbl.gov</a>.  For example:<br>
&gt;<br>
</span>&gt; svn update -r &quot;{2014-03-08 18:00}”<br>
<br>
You can do that with git as well but it looks more geeky:<br>
<br>
git checkout `git rev-list -n 1 --before=&quot;2014-03-08 18:00” master`<br>
<br>
although you could easily put that in a tiny script called checkout-date and then issue “git checkout-date”.<br>
<br>
In any case, git bisect is easy to run in the simple case where you know HEAD is broken but 3c303a24 is good:<br>
<br>
% git bisect start HEAD 3c303a24 —<br>
<br>
This will checkout some version half-way through. You test and you find it’s broken:<br>
<br>
% git bisect bad<br>
<br>
If on the contrary, you find it works fine:<br>
<br>
% git bisect good<br>
<br>
Either of those commands will again checkout some version half-way through. Then you continue until git tells you the bisection is done.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
_______________________________________________<br>
cctbxbb mailing list<br>
<a href="mailto:cctbxbb@phenix-online.org">cctbxbb@phenix-online.org</a><br>
<a href="http://phenix-online.org/mailman/listinfo/cctbxbb" rel="noreferrer" target="_blank">http://phenix-online.org/mailman/listinfo/cctbxbb</a><br>
</div></div></blockquote></div><br></div>