Remote Repos: push pull clone
Connect a local repo to GitHub, push commits to the remote, pull changes from teammates, and clone existing repositories.
What Is a Remote?
A remote is a version of your repository hosted on the internet (GitHub, GitLab, Bitbucket). You collaborate with teammates by pushing your commits to the remote and pulling their commits from it.
git clone — Copy a Remote Repo
git clone url creates a local copy of the remote repository, including all history and branches. The remote is automatically added as origin.
git clone https://github.com/user/repo.git
git clone git@github.com:user/repo.git # SSHAll lessons in this course
- git init add commit and status
- Branching: branch checkout merge
- Remote Repos: push pull clone
- Pull Request Workflow on GitHub