Gitting Backwards

Von Fugal von at fugal.net
Mon Dec 20 09:22:24 MST 2010


<quote name="Charles Curley" date="Sat, 18 Dec 2010 at 21:57 -0700">
> On Sat, 18 Dec 2010 21:44:33 -0700
> AJ ONeal <coolaj86 at gmail.com> wrote:
> 
> > git log
> > 
> > look for the commit of interest (the hex looking string)
> > 
> > git checkout -b my-new-branch 4f5a23c75d3b23ff9e
> > 
> > and viola, you have a new branch starting at the desired commit.
> > 
> > Is that the anwser you were hoping for?
> 
> It will do. Thanks

There are also often "tags" that will denote a particular version in the
past. You can also checkout by the tag name. e.g. "git checkout
release-1.2.0" if the actual tag read "release-1.2.0". You can list tags
with "git tag -l".
-- 
Von Fugal
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
Url : http://plug.org/pipermail/plug/attachments/20101220/8987094d/attachment.bin 


More information about the PLUG mailing list