Skip to content

Latest commit

 

History

History
57 lines (39 loc) · 1.92 KB

File metadata and controls

57 lines (39 loc) · 1.92 KB

GitHub: إنشاء المستودع والرفع

للدليل الكامل: README.md (إنجليزي) · README_AR.md (عربي)

إنشاء مستودع جديد

إذا ظهر "Repository not found"، أنشئ المستودع على GitHub أولاً:

  1. github.com/new أو حسابك (مثل code-root).
  2. اسم المقترح: vfs-appointment-bot.
  3. لا تفعّل: Add README / .gitignore / license (إن كان المشروع جاهزاً محلياً).
  4. Create repository.

تهيئة Git ورفع أول مرة

من جذر المشروع (المجلد الذي يحتوي run_vfs_bot.py):

git init
git add .
git commit -m "Initial commit: VFS Appointment Bot"
git remote add origin https://github.com/YOUR_USERNAME/vfs-appointment-bot.git
git branch -M main
git push -u origin main

استبدل YOUR_USERNAME واسم المستودع بالقيم الفعلية. إذا كان origin موجوداً مسبقاً:

git remote set-url origin https://github.com/YOUR_USERNAME/vfs-appointment-bot.git
git push -u origin main

مصادقة GitHub

  • استخدم Personal Access Token ككلمة مرور عند الطلب: GitHub → Settings → Tokens مع صلاحية repo.
  • أو GitHub Desktop.

أخطاء شائعة

remote origin already exists

git remote remove origin
git remote add origin https://github.com/YOUR_USERNAME/YOUR_REPO.git

failed to push some refs

git pull origin main --allow-unrelated-histories
git push -u origin main

ملفات لا تُرفع

.gitignore يستثني من بين آخرين: config/vfs-credential.ini, config/gpm.ini, config/notification.ini, proxies.txt, used_profiles.json, *.log. لا تضع أسراراً في Git.