شرح صفوف ومحتوى الفقرة
عندما تبدأ مشروعاً محلياً بالأمر git init ثم تنشئ مستودعاً فارغاً على منصة GitHub، تربط المستودعين معاً عبر الأمر git remote add <alias> <url>. وفور إضافته، نفّذ الأمر git remote -v للتحقق من عنوانَي الجلب (fetch) والرفع (push) المسجلين.
Shell
git remote add origin https://github.com/closetag/web-app.git
git remote -v
# origin https://github.com/closetag/web-app.git (fetch)
# origin https://github.com/closetag/web-app.git (push)