انتقل إلى المحتوى
أمين أبوزيد
BEG-047

GitHub

  • 5 درس
  • 58 دقيقة قراءة
  • 2 ساعة تدريب (تقدير)
في هذه الصفحة 8 موضوعات

نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.

نظرة عامة

الموضوعات

  • المستودعات البعيدة
  • push/pull
  • طلبات الدمج (pull requests)
  • README
  • Markdown

تعلّم أولًا

58 دقيقة قراءة · 2 ساعة تدريب (تقدير)

مخرجات التعلم

  1. Connect a local repository to a GitHub remote and push and pull.
  2. Open a pull request, respond to review comments, and merge.
  3. Write a README in Markdown with description, setup, and usage.

الدروس

  1. 01المستودعات البعيدة وpush وpull12 د قراءة
  2. 02المصادقة مع GitHub (مفاتيح SSH أو tokens)12 د قراءة
  3. 03طلبات الدمج (Pull requests) والمراجعات11 د قراءة
  4. 04Markdown وملف README جيد12 د قراءة
  5. 05عرض عملي: نشر مشروع ومراجعة pull request11 د قراءة

المختبر والتمارين

Lab

BEG-047-LAB1 · Public portfolio start

Outcomes: 1–3 · Time: ~2 h Publish two projects to GitHub, each with a README. Open a PR for a small change and have a peer review it. Acceptance: repos public; PR has at least one review round.

Exercises (assessment: portfolio check)

IDOutcomeTask
BEG-047-EX011Create a GitHub repo, connect it to a local repo as origin, and push main.
BEG-047-EX021Clone your repo into a second folder, commit there, push, then pull in the first folder.
BEG-047-EX031Set up SSH or a token and show that git push works without asking for the account password.
BEG-047-EX042Make a change on a branch and open a PR with a title and a description.
BEG-047-EX052Review a classmate's PR: leave one line comment and approve; answer a comment on your own PR and merge.
BEG-047-EX063Write a README with description, setup, and usage sections for one project.
BEG-047-EX073Ask a peer to follow only your README to run the project; note where they got stuck and fix it.
أظهر الحلول
  • EX01 git remote add origin <url>, git push -u origin main.
  • EX02 git clone <url> copy, commit and git push in copy, then git pull in the original.
  • EX03 For SSH: ssh-keygen, upload the .pub file, git remote set-url origin git@github.com:you/repo.git.
  • EX04 git switch -c small-change, commit, git push -u origin small-change, then "Compare & pull request".
  • EX05 Use the Files changed tab for line comments; push the fix to the same branch; use Merge pull request.
  • EX06 Headings # Title, ## Setup, ## Usage with exact commands and the Java version.
  • EX07 Typical gaps: missing Java version, missing build command, wrong folder; add them to the README.

الاختبار

Outcomes: O1 remotes, push, pull · O2 pull requests · O3 README.

اختبار ذاتي لك: لا توجد درجات، ولا يُحفظ أو يُرسل أي شيء. اختر إجابة ثم تحقق منها، ويمكنك المحاولة مرة أخرى كما تشاء.

  1. 1The usual name of the main remote is:O1
  2. 2Which command sends local commits to the remote?O1
  3. 3Which command copies an existing remote repo to your computer?O1
  4. 4With SSH keys, what do you upload to GitHub?O1
  5. 5Where should a personal access token be stored?O1
  6. 6A pull request is:O2
  7. 7After a review comment you should:O2
  8. 8Why avoid pushing directly to main?O2
  9. 9Markdown for a level-one heading:O3
  10. 10Which README part is most often missing?O3

الجزء العملي

Portfolio check: two public repos with READMEs and one PR with a review round (lab and EX01–EX07). Pass: at least 8 of 10 quiz questions and both repos runnable from the README alone.

أخطاء شائعة

Pushing directly to main; READMEs without setup steps.

التقييم

Portfolio check.

الصلة بالمسار الوظيفي

Portfolio and every team workflow afterward.

اكتب للبحث في المستويات والمراحل والوحدات والدروس.