Skip to Content
Coding with Coda
book

Coding with Coda

by Eric J Gruber
January 2013
Beginner to intermediate
64 pages
1h 10m
English
O'Reilly Media, Inc.
Content preview from Coding with Coda

Chapter 3. Source Control Management

My personal journey of how I came to source control management, also known as version control, is likely a familiar and tragic story to many.

Many of my attempts at controlling revisions to my code in my early years of learning web development went a little like this:

  1. Zip up a directory that contained all the code I wanted to save.
  2. Name the file something like backup10102012.zip.
  3. Fool myself into thinking that was all I needed if things went wrong.
  4. Back up that zip file to an external drive.

Just four steps. Rock solid, right?

You probably know how this story ends. At some point, I needed to revert back to a previously saved version of a site I was working on and my four-step zipping process failed me. Looking at it now, it seems obvious:

  • There were no notes as to what “version” of the zip file was different from the other, similar-looking zip files.
  • If I did have documentation, it was likely zipped up and I wouldn’t see it without unzipping the directory.
  • Incremental changes received less-than-useful names like backup10102012-a.zip and backup10102012-b.zip.
  • The ability to collaborate with others was virtually nonexistent.

Fortunately, there is a better way to manage code.

Like Wikipedia for Code

In case you haven’t been introduced, source control management software can be described as “Wikipedia for your code.” When you edit a page in Wikipedia, you and others can see the revisions, roll back to previous edits, make comments, and track the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Learn JavaScript with p5.js: Coding for Visual Learners

Learn JavaScript with p5.js: Coding for Visual Learners

Engin Arslan
Developing Multi-Platform Apps with Visual Studio Code

Developing Multi-Platform Apps with Visual Studio Code

Ovais Mehboob Ahmed Khan, Khusro Habib

Publisher Resources

ISBN: 9781449356088Errata