Back Up to the Cloud
This is a fairly advanced topic. Feel free to skip it on your first reading. But do read it at some point—after all, hard disks fail, laptops break, and thumb drives get lost.
Git keeps a local copy of all of your files and all of your changes in its local repository, and you can set it up to keep a copy of your repository in the cloud as well. You choose when to send changes to the cloud by running the command git push. After a push, the remote repository in the cloud will have all the same content and changes you have locally.
To set that up, you’ll need an account on a Git host.
The most popular one is GitHub, although many people like Bitbucket as well.[36] [37] GitHub is the standard for code that you intend to ...
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