Git & GitHub Flashcards
What is a branch?
Branch: A version of the codebase that diverges from the main branch to isolate changes for specific features, fixes, or experiments.
What is a commit?
Commit: A snapshot of your changes, saved to your local repository. Each commit is uniquely identified by a checksum.
What is the stage?
Stage: The area where Git tracks changes that are ready to be included in the next commit. Files in the staging area are prepared (staged) for the next commit.
What is a merge?
Merge: The process of integrating changes from one branch into another, typically the main branch.
What is a Pull Request?
Pull Request: A proposal to merge changes from one branch into another, often used in collaborative environments to review and discuss changes before they are merged.
What does Fork mean?
Fork: A personal copy of someone else’s project that lives on your GitHub account.
What does clone mean?
Clone: The act of downloading a repository from a remote source to your local machine.
what does “remote” mean?
Remote: A common repository that all team members use to exchange their changes.
what does “origin” mean?
Origin: The default name Git gives to the server from which you cloned.
What does “upstream” mean?
Upstream: The original repository that was cloned.
(or in the direction of the original repository that was cloned.)
what is master/main?
Master: The default branch name given to a repository when it is created. In modern practice, it is often replaced with “main.”
what is a repository?
Repository: A storage location where your project lives, containing all the files and revision history.
what is the working directory?
Working Directory: The directory (folder) on your computer where you are making changes to your project.
Staging Area
Staging Area: Also known as the “Index,” it’s an area where Git tracks changes that are ready to be committed.
Index
Index: Another name for the staging area, where Git tracks changes that are ready to be committed.