Gitting Backwards

AJ ONeal coolaj86 at gmail.com
Sat Dec 18 21:44:33 MST 2010


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?

AJ ONeal


On Sat, Dec 18, 2010 at 9:40 PM, Charles Curley <
charlescurley at charlescurley.com> wrote:

> I'm using git to follow a remote repo. I make no commits. How do I
> get a copy of the repo as of a particular commit, where that commit is
> not HEAD?
>
> Thanks
>
> --
>
> Charles Curley                  /"\    ASCII Ribbon Campaign
> Looking for fine software       \ /    Respect for open standards
> and/or writing?                  X     No HTML/RTF in email
> http://www.charlescurley.com    / \    No M$ Word docs in email
>
> Key fingerprint = CE5C 6645 A45A 64E4 94C0  809C FFF6 4C48 4ECD DFDB
>
> /*
> PLUG: http://plug.org, #utah on irc.freenode.net
> Unsubscribe: http://plug.org/mailman/options/plug
> Don't fear the penguin.
> */
>


More information about the PLUG mailing list