Search⌘ K

Repo Hosting: GitHub

Discover how to use GitHub for hosting your Git repositories, enabling collaboration, safeguarding projects from data loss, and managing branches and pull requests. This lesson guides you through creating repositories, pushing code, branching, and merging changes to support efficient version control.

With Git, you can restore files to any previously committed state, even if they are deleted or modified. However, if your machine gets stolen, crashes, or is lost, you will still lose your project, even with Git.

Also, you still can’t truly collaborate. For that, we’ll look at how you can host your repo on another server with GitHub.

What is repo hosting?

As discussed in the previous lesson, Git can be used to version control your project on your local machine; however, it cannot be used to collaborate with others and does not safeguard your project if you lose your machine.

So, to ensure that your project remains accessible even ...