Wednesday, August 5, 2009

There are basically two different scenarios where you will want to rewind (AKA roll back, revert) your code base to an earlier version.

You just want to have an earlier version of the code, but don't need to work-on / commit-against the earlier revision.

You actually want to roll your project back to an earlier version and then work-on / commit-against the project with the earlier revision as your starting point.

To accomplish #1, you simply update your code back to the earlier revision (yeah, it's an update operation even though you're going backwards). Alternatively, if you want to be very antiseptic, you could checkout the earlier revision.

Feeds

About

I'm a scientist-programmer-cyclist, with side interests in electronics, literature, music, policy, and food. Absurtain will probably feature posts from all quarters, but I'll try to label them well; use the feed buttons above to restrict your interest to major subjects.