Your team's repository lives on GitHub. A copy of it somewhere else is a remote. To work on it, you clone it: download a full copy, every commit and branch, into a new folder.
git clone https://github.com/monster-market/blog.git
Cloning into 'blog'...The clone remembers where it came from, under the name origin:
cd blog
git remote -v
origin https://github.com/monster-market/blog.git (fetch)
origin https://github.com/monster-market/blog.git (push)git branch -a lists your branches and the remote ones. A clone starts with one local branch, main; the others are on GitHub, as remotes/origin/…:
git branch -a
* main
remotes/origin/HEAD -> origin/main
remotes/origin/drafts
remotes/origin/mainFrom here on, the course's GitHub is simulated: git talks to it, and nothing leaves your browser.
Objectives
- Clone the shop.
- Find the branch that's on GitHub only.