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 ...
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