درس 7 من 8
GitHub: push و clone
git push يرفع commits المحلية إلى GitHub. git clone ينزل repository من GitHub إلى جهازك. تحتاج أولاً إلى ربط repository المحلي بـ remote URL.
GIT
# ربط repository المحلي مع GitHub
git remote add origin https://github.com/username/repo.git
# رفع commits إلى GitHub
git push -u origin main
# تنزيل repository
git clone https://github.com/username/repo.git
# تنزيل آخر التغييرات من GitHub
git pull