Recipe 32Managing Files with Git

Problem

As web developers, we’re often in situations in which we need to juggle multiple versions of our code. Sometimes we need to experiment with the latest and greatest plug-in. Then there are the times when we’re in the zone, cranking away on a new feature, but get sidetracked because we need to fix a critical bug. Even if you’ve never used a formalized version-control system, you’ve probably created multiple copies of a file with small variations in the filename to differentiate between different problems you were working on. But that multiple-file system breaks down quickly because it’s all on our machine and isn’t easy to manage. We need something that’s fast, robust, and modern—something that we can use ...

Get Web Development Recipes, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.