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
- Sign upCreate a free account and enable two-factor authentication.
- Create a repositoryClick New, name it, choose public or private and add a README.
- Clone itCopy the URL and run
git cloneon your computer. - Make changesEdit files, then add and commit with Git.
- PushRun
git pushto upload your commits.

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
- Create a branch
git switch -c fix-typo - Commit and push
git push -u origin fix-typo - Open a pull requestGitHub shows a prompt to compare and create one.
- ReviewTeammates comment and suggest changes; checks run automatically.
- MergeMerge into main and delete the branch.

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.

Warning: Public repositories are visible to everyone. Never push passwords, API keys or private client data.
Your first week on GitHub
- Day 1Create an account, enable two-factor authentication and add a profile photo.
- Day 2Create a repository and push a small HTML project.
- Day 3Publish it with GitHub Pages.
- Day 4Write a README with screenshots and a live link.
- Day 5Create a branch, make a change and open a pull request to yourself.
- Day 6Star and explore two projects in technologies you are learning.
- 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.







