2.9 KiB
2.9 KiB
🇬🇧 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.
🇹🇷 02 — Depo oluşturma
Depo, tek bir projedir. Her dosya için değil, her proje için bir depo açın.
Adımlar
- Sağ üstteki + → Yeni Depo.
- Sahip — kendiniz veya üyesi olduğunuz bir organizasyon.
- Depo adı — küçük harf, boşluksuz:
network-lab,web-site,guide. - Açıklama — ne olduğunu anlatan tek satır. Arama sonuçlarında görünür.
- Görünürlük
- Herkese açık — sunucuya erişebilen herkes okuyabilir.
- Özel — yalnız siz ve davet ettikleriniz.
- Depoyu başlat — işaretleyin. İlk işlemeyi
README.mdile oluşturur, depo hemen kullanılabilir olur. - Depo Oluştur'a basın.
İyi adlar
| Yerine | Tercih edin |
|---|---|
Yeni Proje (son) |
yeni-proje |
Ağ Ödevi 1 |
network-lab-01 |
test test 2 |
packet-tracer-tests |
Adlarda boşluk ve parantez, bağlantı paylaşmayı zorlaştırır ve belge içindeki göreli yolları karıştırabilir. Küçük harf, rakam ve tire her zaman güvenlidir.
Oluşturduktan sonra
- Ayarlar → Katkıcılar — başkalarına okuma veya yazma yetkisi verin.
- Ayarlar → Dallar —
maindalını koruyun ki kimse doğrudan işleme yapamasın. - Dosya Ekle — depoyu doldurmaya başlayın (bölüm 03).
Depo silme
Ayarlar → Tehlikeli Bölge → Bu depoyu sil. Onaylamak için depo adını yazmanız gerekir. Geri alınamaz — geçmiş de gider.