Git & Git Hub Flashcards
What is a version control system?
A system that tracks the differences between versions of files, typically used in software development.
What popular method is used to track software versions?
Version control technologies like Git and GitHub.
What is Git?
Git is a version control system designed to help users keep track of changes to files within their projects.
Who designed Git and why?
Linus Torvalds designed Git to manage changes to the Linux kernel, which has thousands of contributors.
What are some benefits of Git over other version control systems?
Git offers better speed, performance, reliability, free and open-source access, and an accessible syntax.
What is GitHub?
GitHub is a Cloud-based hosting service that lets you manage Git repositories from a user interface.
What is a Git repository?
A Git repository is used to track all changes to files in a specific folder and keep a history of those changes.
What additional features does GitHub provide beyond Git?
GitHub provides features like access control, pull requests, automation, documentation, ticketing, and project management.
How is GitHub like a social network?
GitHub users have profiles, can follow other users, and contribute to public projects from anywhere in the world.
What do you do after choosing the owner of the repository?
Input a repository name.
What file is often initialized with a new repository?
A README.md file.
What is a README.md file?
A markdown file used for documentation, which is shorthand for creating HTML pages.
What is the main branch in a Git repository?
The main branch is the default branch of the repository, also known as the main line.
What does the ‘Go to file’ button do in GitHub?
It allows users to view and access the files in the repository.
What command is used to clone a repository using HTTPS?
git clone followed by the HTTPS URL.
What command is used to list directories and hidden files in the terminal?
ls -la.
What is the .git directory?
A hidden folder that contains Git-related information for source control.
What is GitHub?
A cloud-based hosting service that lets you manage Git repositories from a user interface.
What command is used to navigate into a directory in the terminal?
cd followed by the directory name.
What does the command ‘ls -la’ do?
It lists all files and folders, including hidden ones.
What is the .git folder?
A hidden folder used to track all changes in a Git repository.
What are the three states in the Git workflow?
The three states are modified, staged, and committed.
What does it mean when a file is in the modified state?
The file has been changed but is not yet tracked by Git.
What is the staged state in Git?
The file is added to the staging area, where changes are tracked before being committed.