02 — Creating a repository
A repository is one project. Create one per project, not one per file.
Steps
- Press + at the top right → New Repository.
- Owner — yourself, or an organisation you belong to.
- Repository name — lowercase, no spaces:
network-lab,web-site,guide. - Description — one line explaining what it is. It appears in search results.
- Visibility
- Public — anyone who can reach the server can read it.
- Private — only you and the people you invite.
- Initialize repository — tick it. This creates the first commit with a
README.md, so the repository is usable straight away. - Press Create Repository.
Good names
| Instead of | Prefer |
|---|---|
Yeni Proje (son) | yeni-proje |
Ağ Ödevi 1 | network-lab-01 |
test test 2 | packet-tracer-tests |
Spaces and brackets in names make links harder to share and can confuse relative paths inside documents. Lowercase letters, digits and hyphens are always safe.
After creation
- Settings → Collaborators — give other people read or write access.
- Settings → Branches — protect
mainso nobody commits to it directly. - Add File — start filling the repository (chapter 03).
Deleting a repository
Settings → Danger Zone → Delete this repository. You must type the repository name to confirm. This cannot be undone — the history goes with it.