Chapter 6 of 6Show what you made.

Show what you made

Save your project to GitHub, publish it when you can, and finish with a result you can demonstrate and explain in about a minute.

Your builder path

6 / 6 chapters

This chapter

Step 1 of 3

Your next action

Save to GitHub

Get your project off your machine

Create an empty repository, then run the commands in this step to push your project. Check that no secret, token or private key goes with it.

Ready to move on whenYour project files are visible in your GitHub repository.
Need a hand?

If GitHub is blocked, keep your local proof and move to the next step. A screenshot of a working build still counts.

For this step

Never commit a secret

Anything committed stays in the history even after you delete the file. Check that no .env file, key or password is in the list before you commit.

Create an empty repository on GitHub with the same name as your folder, then run these in your project terminal:

Terminal command
git init
git add .
git status
git commit -m "First working build"
git branch -M main
git remote add origin https://github.com/USERNAME/REPO-NAME.git
git push -u origin main

Swipe sideways if a command is long.

Read the output of git status before committing: every file it lists is about to be uploaded. Then refresh the GitHub page and confirm your files are there.

Work through one step at a time. Ticking a step marks it for this page view only, so nothing is saved when you leave.