Beginner9 min

GitHub for Absolute Beginners

GitHub sounds scary. It is not. Think of it as a folder in the cloud that never loses your work and remembers every change you ever made. If you have ever wished you could undo something from last week, GitHub is that wish come true for your projects.

The words you will hear

WordWhat it really means
RepoShort for repository. It is just one project folder kept on GitHub.
CloneCopy a repo from GitHub down to your computer.
CommitSave a snapshot of your work, with a short note about what changed.
PushSend your saved snapshots up to GitHub so the cloud copy is current.
A simple way to remember it
Clone means bring it down. Commit means save a snapshot. Push means send it back up. That is 90 percent of what beginners ever need.

Step 1: Make a free account

Go to github.com and sign up. It is free. Pick a username you would not mind people seeing, since it shows up in your project links. Confirm your email and you are in.

Step 2: Make your first repo

Click the green New button on your GitHub home page. Give the repo a name like my-first-project, tick the box that adds a README file, and click Create. You now have a repo. That was the hard part, and it was not hard.

GitHub - new repository
Repository name: my-first-project
[x] Add a README file
Visibility: Public
[ Create repository ]
Name it, add a README, and click Create repository.

Step 3: The clone, commit, push rhythm

Here is the good news. Your AI tool can do all of this for you with plain commands. You do not have to type these by hand, but it helps to see them once so they are not a mystery.

zsh - my-first-project
# bring the repo down to your computer
$git clone https://github.com/you/my-first-project.git
Cloning into 'my-first-project'...
# after you change something, save a snapshot
$git add -A && git commit -m "first change"
1 file changed
# send your snapshot up to GitHub
$git push
Done. Your cloud copy is up to date.
$
Let the AI do the typing
You can literally say "save my work to GitHub" and a good AI tool will run the commit and push for you. Knowing what the words mean is enough. You do not have to be fast at the keyboard.

Hands-on tasks