MÓDULO_TEÓRICO
Remote Repositories and GitHub
Remote Repositories and GitHub
So far, everything has happened on your local computer. If your hard drive fails, you lose everything. This is where remote repositories come in.
A remote repository is just your project hosted on a cloud server (like GitHub).
Key Concepts
- Remote (origin): A URL to the cloud. By convention, the main remote is called
origin. - Clone: Downloading a full repo from the cloud for the first time.
- Push: Uploading your local commits to the cloud.
- Pull: Downloading new commits from the cloud to your local machine.
- Fetch: Checking what changed in the cloud, but without merging it into your files yet.
