Skip to content
Chapter 03 of 03 · 4 lessons · ~32 min

Working With GitHub

Put your code on GitHub, collaborate with pull requests, clone projects and publish your site with GitHub Pages.

YOUR PROGRESS0%
/ Lessons in this chapter
07
How to Push Code to GitHub How to connect your local project to GitHub and keep both in sync with push and pull. Coming soon
08
How to Make a Pull Request on GitHub How to propose changes with a pull request, get them reviewed and merge them into main. Coming soon
09
How to Clone a Repository How to download a full copy of a repository, with its history, and keep it updated. Coming soon
10
Publish Your Website With GitHub Pages How to put your static website online for free with GitHub Pages and a custom domain. Coming soon

Chapter practice task

Task: Push your portfolio to GitHub, open a pull request and publish it with GitHub Pages

  1. Create a GitHub repository and push your local project.
  2. Create a branch, push it and open a pull request with a clear description.
  3. Merge the pull request and pull the changes locally.
  4. Clone the repository into a second folder to see how others get your code.
  5. Turn on GitHub Pages and share your live portfolio link.

By the end of this chapter

  • Your work is backed up on GitHub
  • You can collaborate with pull requests
  • You can download any public project with clone
  • Your portfolio is live on the internet for free

Quick answers for this chapter

Public or private repository?

Public for portfolio work you’re happy to show. Private for client work and anything confidential.

Is GitHub free?

The free plan includes unlimited public and private repositories, enough for freelancers.

Can I host a WordPress site on GitHub Pages?

No. GitHub Pages hosts static sites (HTML, CSS, JavaScript). WordPress needs PHP and a database.