Pushing, Pulling, Cloning
Master the commands to push local changes to a remote, pull updates from a remote, and clone existing repositories.
Intro to Remote Repositories
So far, we've worked with Git on our local computer. But what if you want to collaborate with others or back up your work online?
This is where remote repositories come in! A remote repository is essentially a version of your project hosted on the internet or a network server.
Platforms like GitHub provide a home for these remote repositories, making collaboration and sharing super easy.
Getting Started: Cloning a Repo
The first step to working with an existing remote repository is to get a copy of it onto your local machine. This process is called cloning.
When you clone a repository, Git downloads all the project files and its complete version history.
It also automatically sets up a connection (called a 'remote') to the original online repository.
All lessons in this course
- GitHub Account & Repositories
- Pushing, Pulling, Cloning
- Collaborating with Remotes
- Managing Multiple Remotes