How-toDev Tools
GitHub for Beginners: Your First Project in 11 Steps
Learn GitHub with a small project you can finish: secure your account, clone a repository, make a pull request and publish a free learning site.

On this page
- Git vs GitHub: Understand Where Your Work Lives
- GitHub in Numbers
- Choose the Browser, GitHub Desktop, VS Code or Terminal
- Build Your First GitHub Project in 11 Steps
- Copy These Files for Step 6
- Collaborate and Review Changes Before Merging
- Organise Work with Issues and Projects
- Understand What Pages and Actions Do
- Keep Secrets Out of Every Repository
- Know When to Pay for GitHub
- Keep This Git Command Cheat Sheet Nearby
- Fix Common Errors Without Losing Work
- Learn the Vocabulary and Avoid Common Mistakes
- Share Your Project on Your GitHub Profile
- Make Your Second Change Small
- Common Questions
Your finished project will have three files, a merged pull request and a public learning page. You will keep a local copy on your computer and learn which changes have reached GitHub.
Quick verdict
- Founders: keep company repositories under company control and give each person their own account.
- Marketers: start with browser edits, issues and README files.
- New developers: learn what stage, commit and push do separately.
- Everyone: enable 2FA, keep API keys out of Git and begin on Free.
For the wider build process, start with how to build an app. Our development tools guides covers the tools around it.
Git vs GitHub: Understand Where Your Work Lives
Git is version control software. It records snapshots called commits, lets you compare changes and maintains branches. GitHub hosts Git repositories online and adds collaboration: access permissions, discussions, issues and pull requests.
Git works offline. Your first project can contain code, campaign notes or documentation.
To investigate a file on GitHub, open it and choose Blame. This shows which commits last changed its lines, including author details and dates. Open a commit message to inspect the change. Raw shows the file without GitHub’s formatting.
Saving changes your working copy; staging selects changes for a commit; committing records them locally; pushing uploads commits. GitHub does not automatically synchronise every file you save.

GitHub in Numbers
- It is where developers are. GitHub’s Octoverse reports more than 180 million developers on the platform, with more than one new developer joining every second.
- India is a growth engine. India added more than 5 million developers in a year, over 14% of all new accounts.
- File size limits apply. GitHub’s docs say Git warns above 50 MiB and GitHub blocks files larger than 100 MiB; use Git LFS beyond that.
- Copilot starts early. GitHub says 80% of new developers use Copilot in their first week.
- Pull requests keep rising. Developers merged a record 518.7 million pull requests in the year, up 29%.
Start with one private repository, commit small changes often, and learn pull requests before branching strategies.
Choose the Browser, GitHub Desktop, VS Code or Terminal
| Interface | Best Starting Job | The Catch |
|---|---|---|
| GitHub website | Read a project, edit a README, raise an issue or review a pull request | Less convenient for many local files |
| GitHub Desktop | Visual branches, commits and pushes on Windows or macOS | Official Linux support is absent; you still need an editor |
| VS Code | Edit files and inspect Git changes in one workspace | Its local Git controls need Git installed |
| Command line | Follow exact commands and understand the underlying operations | You must check your folder and current branch |
GitHub Desktop is free. Clone with File → Clone repository, create a branch, edit, commit, then use Publish branch and Create pull request. VS Code’s Source Control view handles staging and commits; its terminal runs the commands below.

For larger browser edits, press . while viewing a repository to open VS Code for the Web at github.dev. It has no terminal or compute for running your project. GitHub Codespaces supplies a development environment with a terminal and compute; its allowances and billing are separate. Neither is needed for this project.
Tip
Try the review loop without installing tools:
- Create a public practice repository with a README.
- From its default branch, open the branch selector and create
readme-practice. - Open
README.md, choose the pencil button and add one sentence. - Choose Commit changes, enter a short message and commit to
readme-practice. - Open Pull requests → New pull request. Set base to the original default branch and compare to
readme-practice. Inspect the diff and create the pull request. - Merge it, confirm the merge and delete the working branch.
The 11-step project below adds a local copy and a published page.
Build Your First GitHub Project in 11 Steps
Build Launch Notes, a small public learning page. Allow about an hour, including installation; keep this step list open while you work.
Time needed: About One Hour
Create and Secure Your Account
Create a personal GitHub account, choose Free and verify your email. Open Settings → Password and authentication, enable 2FA with an authenticator app and save your recovery codes. Add a backup method. GitHub requires 2FA for accounts selected under its contributor programme; enable it now even if no enrolment prompt appears.
Install Git and Set Up Authentication
Install Git, GitHub CLI and a text editor such as VS Code using their official installers. Windows readers can use Git Bash; macOS and Linux readers can use Terminal. Run the commands below, choose GitHub.com, HTTPS and browser sign-in when prompted, then complete the browser authorisation. Git handles history; the separate gh tool handles GitHub authentication.
git --version gh auth login gh auth setup-gitCreate Your Practice Repository
On GitHub, select + → New repository. Name it launch-notes, choose Public and add a README. Create the repository and check that its default branch is main, the name used below. Use only practice material. For confidential business work, choose Private instead; the free Pages exercise later needs public source.
Clone It and Set Your Commit Identity
In your terminal, open the parent folder where you want the project. Replace YOUR-USERNAME with your GitHub username, then run these commands. Replace the name and email too: use a verified address, or copy your GitHub noreply address from Settings → Emails. These identity settings apply only to this repository and do not sign you in.
git clone https://github.com/YOUR-USERNAME/launch-notes.git cd launch-notes git config user.name "Your Name" git config user.email "YOUR_VERIFIED_OR_NOREPLY_EMAIL" git statusCreate a Working Branch
Run the command below inside launch-notes. A branch gives this change its own line of work while main stays as it was. The command both creates the branch and switches to it. Check the branch name in git status before editing, particularly when you have several project folders open.
git switch -c add-learning-pageAdd a Page, README and Ignore Rules
Create index.html and .gitignore in the project folder using the templates below. Replace the existing README.md with the supplied README text. Save all three files in your editor; do not save them as .txt files. Open index.html in your browser and check the heading. No build tools, dependencies or API keys are needed for this project.
Review and Commit Your Files
Check status, stage the three named files, then inspect the staged changes before committing.
git diffshows unstaged changes to tracked files;git diff --stagedalso lets you review newly added files. Confirm that no personal data or credentials appear. The commit saves a local snapshot with a useful message; it does not upload anything.git status git diff git add index.html README.md .gitignore git diff --staged git commit -m "Add learning page and project notes"Push Your Branch to GitHub
Upload the branch with the command below. The -u option connects this local branch to its remote counterpart, so later pushes can use git push. Return to the repository page and switch to add-learning-page to see your files. They are now on GitHub, but they are not yet part of main.
git push -u origin add-learning-pageOpen and Review a Pull Request
Select Compare & pull request, or use Pull requests → New pull request. Set base to main and compare to add-learning-page. Describe what changed and how you checked it. Open Files changed and read every difference. Invite a collaborator to review, if available. For this solo exercise, inspect your own diff before proceeding.
Merge and Update Your Local Copy
When the change is ready, choose Merge pull request → Confirm merge. Use the normal merge option for this exercise, then delete the remote working branch if offered. Back in the terminal, switch to main and download the merged work. Check that your page appears and status reports a clean working tree.
git switch main git pull --ff-only origin main git statusPublish Your Learning Site with Pages
In the repository, open Settings → Pages. Under Build and deployment, choose Deploy from a branch, select main and /(root), then Save. After the deployment succeeds, use Visit site. Your project address follows the pattern YOUR-USERNAME.github.io/launch-notes/. Keep this a learning showcase and follow the Pages limits explained below; publishing also makes the page’s content public.
If you’d rather pay once than subscribe, this lifetime deal we’ve reviewed fits here:
- Interactive Shell gives you a browser-based IDE and terminal, so you can practise without installing anything.
Copy These Files for Step 6
Create these files directly inside launch-notes, alongside the hidden .git folder.
The HTML Page
Save as index.html:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Launch Notes</title>
</head>
<body>
<h1>Launch Notes</h1>
<p>A practice project for learning GitHub.</p>
</body>
</html>
The Project README
Save as README.md:
# Launch Notes
A practice project for learning GitHub.
## Preview
Open index.html in a browser.
## Contribute
Create a branch, make a change and open a pull request.
A README explains the project, setup and contribution process. Markdown supplies formatting: # creates a heading; a hyphen starts a list.
Try these patterns in your README:
**Ready for review**
Open `index.html` to preview.
- [x] Check the heading
- [ ] Review the pull request
[Preview page](index.html)
Bold text, inline code and task lists also work in issues and pull request descriptions. In a README, relative links to repository files follow the current branch.
The Ignore Rules
Save as .gitignore:
.env
.env.*
!.env.example
node_modules/
.DS_Store
These exclude environment files, dependencies and a macOS system file. The exception allows .env.example with variable names and dummy values. Keep credentials out. Add language-specific rules when needed.
Watch out
A public repository is visible to anyone. Public does not automatically mean open source: a licence defines reuse permissions. Keep client work private, and choose an appropriate licence before inviting reuse of your own project.
Collaborate and Review Changes Before Merging
For business work, use an organisation controlled by the business and invite people through personal accounts. A freelancer’s account should not be your only route to the code.
Invite collaborators through repository Settings. Organisation repositories let you choose access roles to suit each person’s job. Personal repositories have owner and collaborator permissions; invited collaborators receive write access, including access to push changes.
For an open source contribution without write access, fork the repository, clone your fork, create a branch and open a pull request back to the original project.
Choose a project you use, read its README, licence and contribution guidelines, and check recent activity. In Issues, look for good first issue or help wanted. Read the discussion before starting; someone may already be working on it. A small documentation correction is a useful first contribution. Discuss larger changes with the maintainers before writing them.
Say your agency changes a headline. Open a pull request titled “Clarify the annual billing headline”. Include the reason, a screenshot and completed checks. The reviewer should inspect Files changed, check the page and approve or request changes.
- The change does the requested job.
- The diff contains only relevant files.
- No secrets, customer records or debugging output appear.
- The page or application still works after the change.
Pushing new commits updates the pull request. Merge after feedback is resolved and checks pass. Protect main with required-review rules where your plan supports them. Requesting review alone does not enforce approval.
AI review can be an additional check. Our CodeMouse review explains one option that uses your own paid AI API key. Keep a person responsible for the final decision.
Organise Work with Issues and Projects
An issue describes work; a pull request proposes the changes. Make the task clear:
Title: Add a Preview Section to the README
Reason: New contributors need to know how to open the page.
Done When: README names index.html and explains browser preview.
Owner: One named person
Label: documentation
Add Closes #12 to the pull request description, replacing 12 with your issue number. Merging it into the default branch closes the linked issue.
Projects adds table, board and roadmap views around issues and pull requests. Start with Todo, In Progress and Done; group release tasks into milestones. For wider team planning, see our project management tools guide.
Understand What Pages and Actions Do
Pages Publishes Static Project Sites
GitHub Pages serves static HTML, CSS and JavaScript, without an application server or database. Free supports public repositories. A custom domain is optional and purchased separately.
A published Pages site must be no larger than 1 GB. Soft limits are 100 GB of bandwidth a month and 10 builds an hour; the build-frequency limit does not apply to a custom Actions publishing workflow. A deployment times out if it takes longer than 10 minutes.
Watch out
GitHub prohibits using Pages as free hosting to run an online business, ecommerce site or a site primarily facilitating commercial transactions or commercial SaaS. Use it for this learning showcase or suitable project documentation. For a business website, follow our business website guide.
For a 404, check deployment logs in Actions, confirm the selected branch and folder contain index.html, and open the path including /launch-notes/. Private source does not automatically make a Pages website private.
Actions Runs Automated Jobs
An Actions workflow is a YAML file defining a trigger, jobs, runners and steps. Create a new branch, add .github/workflows/hello.yml with this content, then commit, push and open a pull request:
For the HTTPS browser sign-in used in step 2, authorise workflow-file changes before pushing: run gh auth refresh --hostname github.com --scopes workflow and complete the browser authorisation.
name: Learning Check
on: [push, pull_request]
permissions:
contents: read
jobs:
hello:
runs-on: ubuntu-latest
steps:
- name: Confirm the Runner Works
run: echo "Hello from the learning project"
Open Actions and read the job log. This example prints a message; real checks need steps to retrieve and test your code. Standard GitHub-hosted runners are free in public repositories; private-repository compute and storage have allowances and possible extra charges. Before enabling paid usage, create an Actions budget under Budgets and alerts. Select Stop usage when budget limit is reached to block further paid usage; an alert-only budget lets charges continue.
Read third-party actions and grant only the permissions they need. Where supported, use a workflow dependency lockfile to pin direct and transitive action dependencies. Otherwise, pin actions to full-length commit SHAs and verify that each commit belongs to the action’s original repository. Our AI agent safety guide explains permission discipline for tools that act on your behalf.
If you’d rather pay once than subscribe, this lifetime deal we’ve reviewed fits here:
- Editor.do is an online code editor and static host.
Keep Secrets Out of Every Repository
Never commit API keys, tokens, private SSH keys or passwords, even in private repositories. Use environment variables locally and Settings → Secrets and variables → Actions for workflow secrets. Limit access and never print credentials in logs.
Browser JavaScript is public. A build-time secret still leaks if the resulting code contains its value. Calls needing private credentials belong behind a server you control.
Watch out
.gitignore does not remove already tracked files or erase history. If a key reaches a commit, revoke or rotate it first. Then remove it from the code and arrange any necessary history cleanup with collaborators. Deleting the latest file or making the repository private cannot recall existing copies.
If you need to inspect API requests separately, our NativeRest review covers a desktop API client. Keep exported environments containing credentials out of your repository too.
Know When to Pay for GitHub
GitHub Pro is the paid upgrade for a personal account, adding tools such as required reviewers and protected branches in private repositories. Team is an organisation plan. Upgrading your personal account does not upgrade an organisation you manage.
GitHub advertises these USD prices:
| Plan | Advertised Price | Practical Fit |
|---|---|---|
| Free | $0 | Unlimited public and private repositories; learning and basic collaboration |
| Team | $4 per user a month | Organisations needing required reviewers and repository controls for private work |
| Enterprise | $21 per user a month | Organisation-wide identity, governance and enterprise controls |
The pricing page lists USD, without an official INR price. Taxes and metered usage can add to the bill. Six billable Team users cost $24 a month before those additions. Start Free; upgrade for a specific control.
Copilot Is Optional
Copilot Free includes up to 2,000 code completions a month, with limited chat and agent usage. Try explaining a diff; read its output before committing. See GitHub Copilot vs Cursor vs Claude Code.
Keep This Git Command Cheat Sheet Nearby
| Command | What It Does |
|---|---|
git status |
Shows branch, changed files and staging state |
git diff |
Shows unstaged changes in tracked files |
git add filename |
Stages a specific file |
git diff --staged |
Reviews the next commit’s contents |
git commit -m "Clear message" |
Records staged changes locally |
git switch -c branch-name |
Creates and switches to a branch |
git push -u origin branch-name |
Uploads the branch and sets its upstream |
git fetch origin |
Downloads remote history without merging it |
git pull --ff-only |
Updates the current branch only if histories have not diverged |
git log --oneline |
Lists commits compactly |
git restore --staged filename |
Unstages a file while keeping its working changes |
git revert COMMIT_ID |
Reverses an ordinary commit with a new commit; use its ID from git log |
git remote -v |
Shows configured remote addresses |
Fix Common Errors Without Losing Work
| Problem | Safe Next Move |
|---|---|
| Git is not recognised | Install Git, reopen the terminal and run git --version. |
| Not a Git repository | Use cd launch-notes to enter the cloned project folder. |
| Commit is missing on GitHub | Check the branch and push it. Committing alone does not upload. |
| Repository not found | Check the remote URL, signed-in account and repository access. |
| Push rejected: non-fast-forward | Commit your work, fetch the remote branch and merge it before pushing again. |
| Unrelated histories after adding a README online | Clone the GitHub repository into a new folder, copy your project files without its old .git folder, then commit there. Preserve the original folder. |
Resolve a Merge Conflict
Commit your edits, then merge the matching remote branch. Replace add-learning-page with your current branch name:
git fetch origin
git merge origin/add-learning-page
For a pull request conflicting with main, merge origin/main while on your working branch instead.
For a conflict, run git status, open the affected file and choose the correct content. Remove <<<<<<<, ======= and >>>>>>> markers, save, stage and commit. Check the result, then push. Stop an unfinished merge with git merge --abort. Avoid force-pushing over someone else’s work.
Fix Authentication with Tokens or SSH
For HTTPS, use browser sign-in or Git Credential Manager. For a manual token, open Settings → Developer settings → Personal access tokens. Prefer a fine-grained token with an expiry, restricted to your repository. File pushes need Contents write permission; changing Actions workflows can need additional permissions.
Paste the token at Git’s password prompt, never into the URL. Organisations may require approval. Fine-grained tokens have collaborator limitations; use browser authentication or SSH where needed.
SSH uses a private key on your computer and a public key registered under SSH and GPG keys. After configuring the key and agent, check access and change the remote:
ssh -T git@github.com
git remote set-url origin git@github.com:YOUR-USERNAME/launch-notes.git
Verify a new host’s fingerprint against GitHub’s published fingerprints before accepting it. For a public-key error, check that SSH is offering the intended key and that its public key is registered to your GitHub account. Browser sign-in does not change which account an SSH key authenticates.
Learn the Vocabulary and Avoid Common Mistakes
- Repository
- Project files plus their Git history.
- Clone
- A local copy of a repository and its history.
- Fork
- A separate GitHub repository connected to an upstream project, useful when contributing without write access.
- Commit
- A recorded snapshot with a message and identifier.
- Branch
- A named line of work; main usually holds the accepted version.
- Remote and Origin
- A remote is another repository location; origin is the usual name assigned when cloning.
- Pull Request
- A proposal to review and merge changes between branches.
- Merge Conflict
- Competing edits that need a person to resolve them.
Avoid shared logins, direct edits to main, staging everything unread, credentials in private repositories and assuming a green check proves the change is correct.
- 2FA works and recovery codes are saved.
- Your README explains how to preview the project.
- You can explain where each commit lives.
- A reviewed pull request has reached main.
- Your local main is updated.
- No credentials or confidential files appear in the history.
Share Your Project on Your GitHub Profile
For your personal account, create a public repository whose name matches your GitHub username. Add a non-empty README.md at its root. GitHub displays that README on your profile; explain what you are learning and point readers to your practice project.
Make Your Second Change Small
For your second pull request, change the sentence on the learning page to explain what you learnt. Before committing, predict which file git status will list. After pushing, check that GitHub’s main still shows the old sentence. After merging and pulling, confirm that GitHub and your local copy show the new one.
Common Questions
What Is GitHub Used For?
GitHub stores Git repositories and helps people plan, review and share changes. Developers use it for code, but you can also keep documentation, Markdown content and project notes there. Issues track work, pull requests organise review, Actions automate jobs and Pages can publish a static project showcase. Start with one job your team already understands.
Is GitHub Good for Beginners?
Yes. Start with a small repository and learn one loop: create a branch, edit, commit, push, open a pull request and merge. You do not need to understand every tab. Marketers and founders can begin with README edits and issues in the browser, then add GitHub Desktop or command-line Git when they need to work locally.
Are Git and GitHub the Same?
No. Git is the version control software that records file history and manages branches. It can work locally without a GitHub account. GitHub hosts Git repositories and adds permissions, pull requests, issues and other services. Saving a file, committing it locally and pushing it to GitHub are separate actions, which explains many beginner misunderstandings.
Do I Need Git in Order to Use GitHub?
You do not need to install Git to browse repositories, create issues or edit files through GitHub’s website. GitHub still uses Git underneath. Install Git when you want the command-line workflow in this guide, or use GitHub Desktop for visual local work. VS Code’s local Git features also need Git installed on your computer.
Is GitHub Free?
GitHub Free includes unlimited public and private repositories and supports collaboration. It is enough for the practice project here. Team and Enterprise charge per user and add controls suited to organisations. Free access does not make every service unlimited: Actions, cloud development environments and AI tools have their own allowances, restrictions or billing.
How Do I Download Things from GitHub?
Read the project README first. For a ready-to-use application, look for the download instructions or suitable installer under Releases. Code → Download ZIP gives you source files without Git history; it may not contain an installer. Clone the repository when you want Git history and ongoing updates. Check the project’s licence and setup instructions before using its contents.
Can I Change My Public Repository to a Private Repository Later?
Yes, if you have the required access, use the repository’s Settings and visibility controls. That change cannot recall copies people already downloaded or existing forks. Treat public material as shared permanently. Start confidential work in a private repository. On Free, changing this practice repository to private unpublishes its Pages site. Eligible paid plans can publish Pages from private source, but private source alone does not restrict access to the website.
Why Is Password Authentication Not Supported?
Your website password does not authenticate Git operations over HTTPS. Use a browser login through GitHub CLI or Git Credential Manager, a suitable personal access token, or SSH with a registered public key. A token works in the password prompt when using token authentication. Do not put it in a clone URL, committed file or shared terminal screenshot.
§ Keep reading
More on Dev Tools
-

Best tools · Dev Tools
8 Best Web Scraping Tools: No-Code and Developer Picks
Choose among Apify, Octoparse, Firecrawl and five more tools by output, coding effort and cost per usable result, with proxy costs and permission checks explained.
-

Guides · APIs and Webhooks
What Is an API? A Plain-English Guide for Founders
Understand how APIs connect your business tools, what REST and GraphQL mean, how keys and webhooks work, and how to estimate the costs before you build.
-

Best tools · Databases and Backend
Best Headless CMS: 10 Picks for Developers and Content Teams
Choose a headless CMS by editor experience, hosting control and the bill after free. Ten picks, plan limits, two worked budgets and a migration checklist.
§ Reviews
Best-Scoring Dev Tools Tools
See them all-
Deal open
Dev Tools · AppSumo Marketplace
NativeRest
4.1/5
NativeRest Review: A $19 API Client Deal, Minus the ChatGPT Perk
Must buyAppSumo buyers: 5.0 out of 5 from32 reviews
- Deal
- $19
- Instead of
- $9/mo
- Pays back
- 2.1 mo
-
Deal open
Dev Tools · AppSumo Marketplace
MarkupGo
4.0/5
MarkupGo Review: $49 for Monthly Image and PDF Renders
Must buyAppSumo buyers: 4.8 out of 5 from37 reviews
- Deal
- $49
- Instead of
- $29/mo
- Pays back
- 1.7 mo
-
Deal open
Dev Tools · AppSumo Marketplace
Twidget.io
3.9/5
Twidget.io Review: A $49 No-Code API Builder, Without Code Export
Must buyAppSumo buyers: 5.0 out of 5 from25 reviews
- Deal
- $49
- Instead of
- $25/mo
- Pays back
- 2.0 mo
