Alin Li محاكي Git
المستوى 1
0 / 100 XP

Get Ready!

Click on المهمة 1 in the sidebar to start learning Git.

Welcome!

Select a mission from the sidebar to begin your Git adventure!

📁 مجلد العمل (ملفاتك)
لا ملفات بعد. ابدأ مهمة!
📋 منطقة التجهيز (جاهز للحفظ)
لا شيء مجهّز بعد.
💾 سجلّ الإيداعات (لقطات محفوظة)
لا إيداعات بعد.
🌿 Branches
Initialize a repo first.
Type →
طرفية Alin Li main
Welcome to Alin Li Git Simulator!
Type git commands below. Type help for a list.
$

📖 تثبيت Git الحقيقي واستخدامه

بعد تعلّم Git في المحاكي، إليك كيفية استخدام real thing on your computer! Remember: Git works with any files — not just code!

1. ثبّت Git

Git is free and open source. اختر نظام التشغيل لديك:

🐧

Linux (Ubuntu/Debian)

$ sudo apt update
$ sudo apt install git
🪟

Windows

Download from git-scm.com and run the installer. Keep all defaults. You'll get "Git Bash".

🍎

macOS

$ git --version
# سيعرض macOS تثبيته
Check it worked: افتح الطرفية واكتب git --version. ينبغي أن ترى رقم إصدار!

2. اضبط اسمك

Tell Git who you are. You only do this once:

# اضبط اسمك
$ git config --global user.name «اسمك»

# اضبط بريدك الإلكتروني
$ git config --global user.email "you@example.com"
--global means this applies to ALL your projects on this computer.

3. ابدأ مشروعك الحقيقي الأول

Create a folder and initialize Git — just like the simulator!

# أنشئ مجلدًا جديدًا
$ mkdir my-project
$ cd my-project

# هيّئ Git
$ git init
Initialized empty Git repository
That's it! أنشئ الآن ملفات واستخدم الأوامر نفسها التي تدربت عليها!

4. سير العمل اليومي

Here's what you'll do every time you work on your project:

Step 1: Make changes to your files

Edit your story, report, recipe, code — whatever you're working on!

Step 2: See what changed

$ git status

Step 3: Stage your changes

$ git add . # جهّز كل التغييرات

Step 4: Save a snapshot

$ git commit -m «صِف ما فعلته»

Step 5: Repeat!

Good commit messages matter! ❌ "fix stuff" → ✅ "Fix the introduction paragraph"

5. Working with Branches

Branches let you try new ideas safely — just like the simulator:

# أنشئ فرعًا جديدًا وانتقل إليه
$ git checkout -b my-new-idea

# ... أجرِ التغييرات، وأضفها، وسجّلها ...

# عُد إلى main
$ git checkout main

# ادمج فكرتك في main
$ git merge my-new-idea

# نظّف الملفات المؤقتة
$ git branch -d my-new-idea

6. Share on GitHub / Codeberg

Want to share your project or back it up online?

# اتصل بوجهة بعيدة
$ git remote add origin https://github.com/you/project.git

# ارفع عملك
$ git push -u origin main

# نزّل التحديثات
$ git pull
نصيحة للمصادر المفتوحة: Try Codeberg.org — a free, open-source alternative to GitHub!

7. Cheat Sheet

git init
Start a new repository
git status
See what changed
git add .
Stage all changes
git commit -m "msg"
Save a snapshot
git log --oneline
Short history
git diff
See file changes
git branch
اعرض الفروع
git checkout -b name
Create + switch
git merge name
ادمج فرعًا
git branch -d name
Delete branch
git push
Upload to remote
git pull
Download from remote
git clone url
Copy a remote project
git stash
Temporarily save work

🎉 You're Ready!

You've practiced in the simulator and now you know the real commands. Go create amazing things with Git!

Git is for EVERYONE — writers, artists, scientists, teachers, and programmers alike.

🎉