51 lines
1.8 KiB
Markdown
51 lines
1.8 KiB
Markdown
# 04 — Creating directories
|
|||
|
|
|
||
|
|
🌍 **English** · [Türkçe](../../tr/04-create-directory/readme.md) · [Deutsch](../../de/04-create-directory/readme.md) · [Français](../../fr/04-create-directory/readme.md) · [Русский](../../ru/04-create-directory/readme.md)
|
||
|
|
|
||
|
|
## The quick way
|
||
|
|
|
||
|
|
1. Open the repository, or the folder you want the new folder inside.
|
||
|
|
2. **Add File → New Directory**.
|
||
|
|
3. Type the folder name, e.g. `docs`.
|
||
|
|
4. Press **Commit Changes**.
|
||
|
|
|
||
|
|
The panel shows where the folder will be created (`current/path/`) above the name box, so you always know where you are.
|
||
|
|
|
||
|
|
## Nested folders in one go
|
||
|
|
|
||
|
|
Type a path instead of a single name:
|
||
|
|
|
||
|
|
```
|
||
|
|
docs/images
|
||
|
|
```
|
||
|
|
|
||
|
|
That creates `docs`, and `images` inside it, in a single commit.
|
||
|
|
|
||
|
|
## Why a `.gitkeep` file appears
|
||
|
|
|
||
|
|
Version control tracks *files*, not empty folders. To keep a folder that has nothing in it yet, KabaForge puts an empty file named `.gitkeep` inside. It has no effect on your project — delete it once the folder has real content, or simply leave it.
|
||
|
|
|
||
|
|
## The other way: create a folder while creating a file
|
||
|
|
|
||
|
|
**Add File → New File** and type a path in the name box:
|
||
|
|
|
||
|
|
```
|
||
|
|
reports/2026/january.md
|
||
|
|
```
|
||
|
|
|
||
|
|
Both folders and the file are created together. Use this when you already know the first file.
|
||
|
|
|
||
|
|
## Naming rules that save you pain
|
||
|
|
|
||
|
|
| Avoid | Use |
|
||
|
|
|-------|-----|
|
||
|
|
| `Ağ Ödevi (1)` | `network-lab-01` |
|
||
|
|
| `My Notes` | `my-notes` or `notes` |
|
||
|
|
| `resimler ve ekler` | `assets` |
|
||
|
|
|
||
|
|
Folder names with **spaces** or brackets make links harder to share, and relative image paths inside Markdown are more fragile. Lowercase letters, digits and hyphens are always safe.
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
⬅ [Previous: 03 — Adding and editing files](../03-add-and-edit-files/readme.md) · 📚 [Contents](../README.md) · [Next: 05 — Deleting files and directories](../05-delete-files/readme.md) ➡
|