Questenaتدريب يوضح لك ما ينبغي مراجعته لاحقًا
السؤال 4

In Git's data model, what is a branch?

  1. A complete copy of the project's files kept in a separate directory
  2. A lightweight movable pointer (reference) to a commitالإجابة الصحيحة
  3. A tag that permanently marks a release commit
  4. A separate clone of the repository stored on the server

الشرح

A branch is just a named reference to a commit, stored as a tiny reference in the repository's ref storage (a loose file under .git/refs/heads/, an entry in packed-refs, or a reftable record); it moves forward automatically as you make new commits on it. Nothing is copied — all branches share the same object store. A tag also points to a commit but is not meant to move, which is the key difference from a branch.

تابع هذا الاختبار

بدء التدريب
السؤال 4: In Git's data model, what is a branch? · Git Fundamentals · Questena