Skip to content

GitHub for Beginners: Repositories, Pull Requests and Pages

GitHub for beginners — create an account and repository, push code, branches and pull requests, issues, GitHub Pages hosting, Actions and profile tips.
GitHub for Beginners: Repositories, Pull Requests and Pages — WebDesigningPune guide
Quick answer

GitHub is a platform for hosting Git repositories and collaborating on code. Beginners should: create a free account, make a repository, push code from their computer, use branches and pull requests to propose changes, track work with issues, publish static sites free with GitHub Pages and automate checks with GitHub Actions.

This guide to GitHub for beginners starts with the big picture: GitHub is where much of the world’s code lives — from tiny personal projects to software used by millions. For beginners, it is also a place to store your work safely, show employers what you can do and learn from other developers’ code.

You do not need to understand everything on GitHub to start. Creating a repository, pushing code and publishing a simple site with GitHub Pages already gives you a lot.

GitHub for beginners: create your first repository

  1. Sign upCreate a free account and enable two-factor authentication.
  2. Create a repositoryClick New, name it, choose public or private and add a README.
  3. Clone itCopy the URL and run git clone on your computer.
  4. Make changesEdit files, then add and commit with Git.
  5. PushRun git push to upload your commits.
GitHub for beginners: create your first repository
git clone https://github.com/your-username/my-site.git
cd my-site
# edit files
git add .
git commit -m "Add homepage"
git push

New to Git? Start with how to use Git. GitHub Desktop offers a visual alternative to the command line.

Key GitHub features

Feature What it is for
Repositories Store code and history
Branches Work on changes without affecting main
Pull requests Propose, review and merge changes
Issues Track bugs, tasks and ideas
GitHub Pages Free hosting for static websites
GitHub Actions Automate tests, builds and deployments
Codespaces Cloud development environments
Copilot AI coding assistant

The pull request workflow

  1. Create a branchgit switch -c fix-typo
  2. Commit and pushgit push -u origin fix-typo
  3. Open a pull requestGitHub shows a prompt to compare and create one.
  4. ReviewTeammates comment and suggest changes; checks run automatically.
  5. MergeMerge into main and delete the branch.
GitHub pull request screen showing the conversation, changed files, review comments and merge button

Host a website with GitHub Pages

Push an index.html to a repository, open Settings → Pages, choose the branch and folder, and your site is published at username.github.io/repository. You can also connect a custom domain.

Make a strong GitHub profile

  • Add a profile README introducing yourself.
  • Pin your best projects.
  • Write clear README files with screenshots and live demo links.
  • Commit regularly with meaningful messages.
Code editor screenshot (dark theme) illustrating “Make a strong GitHub profile”

Warning: Public repositories are visible to everyone. Never push passwords, API keys or private client data.

Your first week on GitHub

  1. Day 1Create an account, enable two-factor authentication and add a profile photo.
  2. Day 2Create a repository and push a small HTML project.
  3. Day 3Publish it with GitHub Pages.
  4. Day 4Write a README with screenshots and a live link.
  5. Day 5Create a branch, make a change and open a pull request to yourself.
  6. Day 6Star and explore two projects in technologies you are learning.
  7. Day 7Pin your best repositories to your profile.

Writing a great README

  • Project name and one-sentence description.
  • Screenshot or GIF of the project.
  • Live demo link.
  • Features and technologies used.
  • How to run it locally.
  • What you learned or would improve next.

Contributing to open source

Start small: fix a typo in documentation, improve an example or tackle an issue labelled “good first issue”. Read the project’s contributing guidelines, be polite in discussions and keep pull requests focused. Even small contributions teach you how real projects work.

Build portfolio pieces with HTML projects and JavaScript projects.

Frequently asked questions

Is GitHub free?

Yes. The free plan includes unlimited public and private repositories, with paid plans adding more features and usage.

Do I need to know Git to use GitHub?

Basic Git knowledge helps, but GitHub Desktop and the web interface let beginners start without the command line.

What is a pull request?

A request to merge changes from one branch into another, with space for review and discussion.

Can I host a website on GitHub for free?

Yes. GitHub Pages hosts static websites free, including with a custom domain.

Should my GitHub repositories be public or private?

Make portfolio projects public so employers can see them. Keep client work, experiments with sensitive data and anything containing secrets private.

Do employers look at GitHub profiles?

Many technical employers do, especially for junior roles. Clean, documented projects help more than a long list of unfinished repositories.

What is a GitHub Gist?

A Gist is a simple way to share code snippets or notes, useful for small examples and configuration files.


Further reading: MDN’s web development learning area.

First published November 17, 2026 · Last updated November 26, 2026