Skip to content

Exercise 05: GitHub Remote

Goal

Connect a local repository to GitHub.

Tasks

  1. Create an empty GitHub repository.
  2. Copy its HTTPS or SSH remote URL.
  3. Run git remote add origin <url>.
  4. Run git remote -v.
  5. Push with git push -u origin main.

Reflection

  • What does origin mean?
  • Why should you review files before the first push?