Guide · ready-to-copy prompts
What a GitHub repository is: examples and exercises.
Understand what a repository is, what it's for, and practice with six exercises: create your own, make commits, use branches and undo mistakes.

A repository is a folder for your project that remembers its whole history: every change, who made it and when. That way you can go back, try ideas without fear and work with other people (or with an AI). GitHub is the website where you keep that folder online.
| Word | What it is |
|---|---|
| Git | The program that keeps the history, on your computer |
| Repository | The project folder with its history |
| Commit | A "snapshot" of the project with a message about what changed |
| Branch | A parallel copy to try things without touching the main version |
| Clone | Download a copy of a repository |
| Push / Pull | Upload changes to GitHub / bring down the new ones |
1What it's useful for
Undoing mistakes, trying things on a branch, having a backup, collaborating, showing your work and using tools like Claude Code, which leave their changes as commits you can review or undo. It works for prompts, websites, skills, notes, courses…
my-project/
├── README.md ← front page: what it is, what it's for, how to use it
├── prompts/
├── .gitignore ← files Git should ignore (e.g. .env)
└── .git/ ← the history (don't touch it)2The basic cycle
With Git installed, in your project folder:
git init # turn the folder into a repository
git add . # mark the files to save
git commit -m "Add my first prompts"
git log --oneline # see the historyTo connect it to GitHub, create an empty repository on the website and:
git remote add origin https://github.com/YOUR-USER/my-project.git
git branch -M main
git push -u origin mainFrom there on: you change something → git add . → git commit -m "..." → git push. A good message says what you did ("Fix the broken link in the README"), not "changes".
3Exercises
- Your first repository (10 min): on github.com create
my-prompts, public, with a README. - Edit on the web (5 min): edit the README, commit and look at the Commits tab.
- Upload a file (5 min): Add file → Create new file →
prompts/ideas.md. - From your computer (20 min):
git clone https://github.com/YOUR-USER/my-prompts.git, createprompts/emails.md, thengit add .→git commit -m "..."→git push. - Branch and mistake (20 min):
git switch -c test-readme, delete the README, commit, go back withgit switch main(it's still intact) and delete the branch withgit branch -D test-readme. - Explore (10 min): open someone else's repository, read its README and check when its last commit was.
Final challenge: my-ai-system with a README, a prompts/ folder with 3 prompts and one commit for each. Share it in the community.
4Careful with private stuff
- Never upload passwords, API keys or client data. Deleted things stay in the history.
- If you don't want anyone to see it, create it as Private.
- Put
.envin.gitignore.
Next: learn branches and pull requests. If you use Claude Code, ask it to explain each command before running it.
Free community
Join the community.
Create your free account: it takes less than a minute and no card is required.
Your free account also gives you
- Downloads on every resource. The files of every guide, today's and the ones still to come, without asking again.
- Free courses. Learn step by step with video lessons and track your progress.
- Spanish-speaking community. Ask, share what you build and get answers from others who use AI like you.
- Live events. We let you know before each one so you don't miss it.
- Member card, points and ranking. Earn points for joining in and learning, and climb the ranking.
Already have an account? Log in
Andrés Gómez
Practical AI to create content, photos and brand. @andresgomez.ia
Keep going with

