Chapter 12Keep Your Code Safe

In this chapter we’ll add Git to your arsenal. With Git you can change your code without fear that you’ll lose anything or mess anything up. You’ll add these skills to your toolbox:

  • How to install Git

  • Use Git to keep track of changes to code

  • Go back to earlier versions of code (an “undo button”)

  • Maintain multiple versions of code at the same time

  • Back up your code to the cloud

Git gives you one of the most powerful tools of all: an “undo button” for your project.

By now you might recognize a certain frustrating moment when coding: everything was working just fine, but you added a couple of lines of code in a couple of different files, and now nothing works anymore. What changes did you make? Which one ...

Get Learn to Program with Minecraft Plugins, 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.