Professional Business Website · Phase 1 · Lesson 3 of 3
Project Setup with Git and GitHub
Create the project's folder structure, start a Git repository, make your first commit and push it to a new GitHub repository you will publish from.
What you need
A computer (Windows, macOS or Linux) with Visual Studio Code (free) and a current web browser such as Chrome or Firefox. A smartphone is used for testing. Git (free) and a GitHub account.
In this lesson you will
- Initialise a Git repository and make meaningful commits
- Connect the project to GitHub
Key concepts
repositorycommitcommit messagepushremoteREADME
The lesson
Git records the history of your project, so you can see what changed and undo mistakes. A commit is a saved snapshot with a message describing the change.
GitHub stores your repository online. It is your backup, your portfolio evidence and, in phase 6, your free web host. Create a free account with your own email address.
Commit small, meaningful steps: 'Add services page structure' is useful; 'changes' is not. Your instructor will read your commit history as evidence of your process.
Step by step
- Install Git and set your name and email with git config.
- In the project folder run git init, add a README.md, and make the first commit.
- Create an empty repository on GitHub named amani-website.
- Connect it as the remote and push your first commit.
Practice activity
Set up the project repository with a README and the folder structure, and push it to GitHub.
Expected result: A public GitHub repository with the project folders, a README and at least two meaningful commits.
Common mistakes
- Writing commit messages that do not say what changed
- Committing only once at the end, losing the history of the work
Check your understanding
-
What is a commit?
Show answer
A saved snapshot of the project with a message describing the change.
-
Name two reasons to use GitHub in this project.
Show answer
Backup and history, portfolio evidence, and free hosting with GitHub Pages.
Further learning
Projects are instructor-guided: an instructor sets milestones, checks your work and gives feedback, online or in person. Self-study of the public lessons does not lead to a certificate. Enrolment and fees follow the Academy's existing policies — contact the Academy.