SONUB
EN English 한국어 日本語 中文 हिन्दी বাংলা اردو Español Português Français Deutsch Русский العربية Bahasa Indonesia Tiếng Việt ไทย Türkçe

How to enable notifications

Notifications are unavailable in this browser or on this address. Try a supported browser on the secure SONUB site.

If notifications are blocked, allow them in your browser settings.

  1. Open the site controls beside the address bar, or your browser’s site settings. Set Notifications for this site to Allow.
  2. In your device settings, allow notifications for your browser and check Do Not Disturb or Focus.
  3. Return to SONUB and reload the page. Once notifications are on, the bell disappears.

On iPhone or iPad, add SONUB to your Home Screen, open it there, then allow notifications.

Log in Log out Display theme Default theme Dark theme Pink theme Chat 1:1 Chat Group Chat Forum Notices News Suggestions Introductions Main menu
All steps
Step 2

The repository and its three areas

Create or a , and learn to tell apart the , the , and the repository. Miss this distinction and every later command will confuse you.

What you'll learn

  • You can turn an empty folder into a
  • You can someone else's repository to your machine
  • You can draw how a file moves between the three areas

There are two ways to get a repository: git init turns your folder into one, and git clone copies an existing one wholesale. Either way a hidden .git appears in the folder. That directory is the repository — all and configuration live there. Delete it and the history is gone; keep it and every committed file can be restored at any time (uncommitted changes cannot).

A messy desk with papers and clothes on the left, an open suitcase in the middle holding a few neatly chosen items, and a shelf of sealed, labeled boxes on the right, with arrows between them.
Work folder (desk) → (open suitcase of chosen items) → repository (sealed boxes). add puts things in the suitcase, and seals the box.

Working with means always knowing which of three areas a file sits in. The is the actual file you see in your editor. The staging area (index) is a waiting room for "things going into the next commit". The repository is where a commit has been made permanent. Files move from working directory to staging with add, and from staging to the repository with commit.

The middle step exists so you can curate commits. Even if you touched five files, you can pick the two that belong together and commit just those. That ability is what later makes history readable and lets you find the commit that broke things quickly.

Understand it easily

Imagine packing for a trip. The work folder is your room with clothes everywhere, the staging area is the open suitcase where you put only what you chose, and the repository is the sealed box with a label. git add puts things in the suitcase, and git commit seals the box.

Commands for this step

git init
Turn the current folder into a new repository; .git appears.
git clone <URL>
Clone a in full — history included.
git status
Show the current state of all three areas. When stuck, always run this first.
ls -a
List too — see for yourself that .git is really there.

Common mistake and how to fix it

Running git init in the wrong folder, such as your home folder, so every file under it ends up in the repository. Check where you are with pwd (it shows the folder you are in) first. If it already happened, run rm -rf .git in that folder to delete only the .git folder made there. Your own files stay as they are.

You mark this yourself. Nothing is graded here.

Mark this step as understood?

This cannot be undone yet, so mark it only when you really understand.

Marked as understood

You mark this yourself. Nothing is graded here.

Guidelines

AI

Agent Tools

Vibe Coding

AI in Practice

Certificate

AI Class

IT Basics

Chat

Forum

Create

Community

More

Glossary

Pick a word you don't know. You'll see a simple explanation and related terms.

No matching term yet.

Pick a term to see its explanation.