Everyday git commands and concepts: branching, merging, rebasing, stashing, remotes.
این مجموعه فلشکارت شامل دستورات و مفاهیم پرکاربرد گیت است که برای استفاده روزمره توسعهدهندگان نرمافزار طراحی شده است. روی کارتها پرسشهای کلیدی و در پشت آنها پاسخهای دقیق و کوتاه قرار دارد تا مرور سریع مطالب ممکن شود.
محتوای این دک شامل مباحثی مانند مدیریت شاخهها، ادغام، ریبیس، ذخیره موقت تغییرات و کار با مخزنهای ریموت است. این مجموعه هم برای برنامهنویسان شاغل و هم برای افرادی که خود را برای مصاحبههای فنی آماده میکنند کاربرد دارد.
سیستم تکرار با فاصله (SRS) در یادمد به شما کمک میکند کارتها را در بازههای زمانی مناسب مرور کنید تا دستورات در حافظه بلندمدت شما ثبت شوند. برای نتیجه بهتر، پیشنهاد میشود هر روز بخشی از کارتها را مرور کنید.
۱۲ کارت اول از ۵۰ — رو و پشت هر کارت
What is the primary purpose of git?
Git is a distributed version control system used to track changes in source code during software development, enabling multiple developers to collaborate efficiently.
What does git status display?
It shows the state of the working directory and the staging area, highlighting tracked, untracked, and modified files.
What is the staging area in git?
An intermediate area where changes are gathered and prepared before being committed to the repository history.
What command records staged changes to the repository history?
git commit, typically used with a -m flag to provide a descriptive message.
What is a git commit?
A snapshot of the project at a specific point in time, containing metadata like author, timestamp, and a unique hash.
What is a git branch?
A lightweight movable pointer to a specific commit, allowing developers to isolate work from the main codebase.
How do you create and switch to a new branch simultaneously?
git checkout -b <branch-name> or git switch -c <branch-name>.
What command lists all local branches in a repository?
git branch, which also highlights the currently active branch with an asterisk.
How do you switch between existing branches?
git checkout <branch-name> or git switch <branch-name>.
What is HEAD in git?
A special pointer that references the currently checked-out commit or branch.
What does git merge do?
It combines changes from one branch into another, creating a new merge commit if histories have diverged.
What is a fast-forward merge?
A merge that occurs when the target branch has not diverged, simply moving the branch pointer forward to the latest commit.
این مجموعه برای افراد مبتدی تا متوسط که با مفاهیم اولیه برنامهنویسی آشنایی دارند و میخواهند گیت را برای کار یا مصاحبه یاد بگیرند مناسب است.
توصیه میشود هر روز چند دقیقه وقت بگذارید، سوال روی کارت را بخوانید، پاسخ را در ذهن خود مرور کنید و سپس کارت را برگردانید تا درستی آن را بسنجید.
بله، بسیاری از پرسشهای این دک حول سناریوهای رایج و سوالات متداول مصاحبههای برنامهنویسی درباره گیت طراحی شدهاند.
هنوز کسی آزمون نداده؛ اولین نفر باش.
تا ۲۰ سؤال چهارگزینهای از همین دسته، ۳۰ ثانیه برای هر سؤال. خودت را بسنج و رتبهات را میان بقیه ببین. هر نفر فقط یکبار میتواند شرکت کند.
برای شرکت در آزمون وارد شو