[GRLUG] git syntax question
Nathan Phillip Brink
binki at gentoo.org
Wed Nov 9 23:36:50 EST 2011
On Wed, Nov 09, 2011 at 04:56:16PM -0500, Adam Tauno Williams wrote:
> I'm working with Samba 4 check out of git. In tracking down a bug I've
> been asked to test it prior to commit
> 995d1567265be178b4e45f79ea4562a7041ffa52. What is the git'y speak for
> rolling back a repo to prior to a specified commit?
I don't think that this person wants you to do a revert commit. What I
would do is:
$ git checkout 995d1567265be178b4e45f79ea4562a7041ffa52^
The `^' tells git to get the parent of the previous commit hash. Git
will complain about you working in a `detached head'(?) state, but
that is what you want -- to look at what the project looked like back
in time.
--
binki
Look out for missing or extraneous apostrophes!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://shinobu.grlug.org/pipermail/grlug/attachments/20111110/da4a0f01/attachment.pgp>
More information about the grlug
mailing list