Rayhan,
On Tue, Jan 5, 2010 at 6:09 AM, RAYHAN MUKTADER <[email protected]> wrote:

> I was wondering if there is way to to checkout and test different
> commits without destroying the new commits.
>
> I've always used RCS and I've gotten used to doing that.
>

Yes, you can do exactly that, simply by checking out that commit. Let's say
the sha of the 4th commit backwards in time is ffa0, you'll simply "git
checkout ffa0".


> Lets say I find a bug after making five commits.  Is it possible for
> me to checkout the the third commit, test it and then if I find
> nothing wrong there can I check out either the fourth commit or the
> fifth commit?  Thank you in advance for your input
>

You may want to look into git bisect for this. Bisect (git bisect help for
instructions) lets you mark a "good" revision and a "bad" revision and then
binary searches for the commit that introduced the bug. This seems to be
more or less what you're looking for?

Regards,
- Marius

--

You received this message because you are subscribed to the Google Groups 
"Gitorious" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/gitorious?hl=en.


Reply via email to