DrupalCampNYC 10

Saturday 12 · 10 · 2011

Git in gear: How to track changes, travel back in time, and code nicely with others.


Ever made a mistake and wished for the power to turn back time? In this session you'll experience the magical world of version control, where you can:

  • try out massive code changes without worrying that you'll break your entire site,
  • have access to different versions of your code without saving tons of copies with elaborate naming schemes, and
  • collaborate with others without ever again having to utter the phrase, "Okay, I've finished working on styles.css, so you can go ahead and make your changes now."

This will be a play-along crash course on Git, the version control system that Drupal.org developers (and lots of other people) use to share code with one another and save themselves time and misery.

We'll start with fundamental commands, trying them out along the way. By the end of the session you'll have mastered a simple daily workflow that you'll be able to start using immediately. Plus, you'll leave with a cheat sheet and resources for future reference.

This session will include:

  • Why use version control?
  • Why use Git?
  • How to use Git repositories on Drupal.org
  • Fundamental commands
  • A simple daily workflow
  • How to turn back time when something goes wrong
  • How to use Git to experiment safely
  • How to see who did what when and review changes

And a bonus round, if time allows:

  • How to use Git on a team (or with a remote repository) that's using SVN
  • Additional resources/Where to learn more

If you've been meaning to get around to learning Git, now's the time!

Schedule info

234H (T)