InstructQRGitHub repository demo
English (UK)Updated 4 August 2026

Product setup instructions

Create and clone a GitHub repository

Create a private repository on GitHub, clone it to your computer, and push a verified first change.

Time
10 minutes
Skill level
Beginner
Tools
Web browser, Git, Terminal
Start instructions

Creator responsibility

About these instructions

We are responsible for the accuracy, safety warnings, compliance, and suitability of these instructions for the identified product.

Before you start

Prepare the workspace.

Tools

  • Web browser
  • Git
  • Terminal

Parts

    01

    Check the prerequisites

    Sign in to github.com. Open Terminal, PowerShell, or Git Bash and run git --version.

    Tool

    GitHub account, web browser, Git, and a terminal

    Check

    Git reports a version number and GitHub opens while you are signed in.

    02

    Create the repository

    GitHub New repository form with an owner, repository name, Private visibility, and Add a README selected.
    GitHub New repository form with an owner, repository name, Private visibility, and Add a README selected.

    Select the plus menu, choose New repository, enter demo-notes as the name, choose Private, and select Add a README file. Select Create repository.

    Note

    Use Public only when the repository contents are intended to be visible to everyone.

    Check

    GitHub opens the demo-notes repository and displays README.md.

    03

    Copy the clone URL

    GitHub Code menu with the HTTPS tab selected and the repository URL ready to copy.
    GitHub Code menu with the HTTPS tab selected and the repository URL ready to copy.

    On the repository page, select Code, select HTTPS, then use the copy button beside the URL.

    Check

    The copied address ends with /demo-notes.git.

    04

    Clone the repository

    Terminal showing git clone followed by a successful clone into the demo-notes folder.
    Terminal showing git clone followed by a successful clone into the demo-notes folder.

    In the terminal, change to your projects folder, run git clone followed by the copied HTTPS URL, then run cd demo-notes.

    Caution

    If a demo-notes folder already exists, choose another parent folder or remove the old clone only after confirming it contains no uncommitted work.

    Check

    The demo-notes folder contains README.md and git status reports the main branch.

    05

    Commit a local change

    Add one line to README.md, save it, then run git add README.md and git commit -m "Update README".

    Note

    A commit records the staged change locally. It does not update GitHub until it is pushed.

    Check

    git status reports that the working tree is clean.

    06

    Push and verify the change

    Run git push origin main. Return to the repository page in GitHub and refresh it.

    GitHub repository page showing the Update README commit and the updated README content.
    GitHub repository page showing the Update README commit and the updated README content.
    Check

    GitHub shows the Update README commit and the new README line.