Git and Github Flashcards

1
Q

What is Git?

A

Git is the most commonly use version control system. It tracks the changes you make to files, so you have a record of what you have done, and can revert to specific versions if needed. It also makes collaboration easier, allowing changes from multiple people to be merged.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is Github?

A

GitHub is a for-profit company that offers a cloud-based Git repository hosting system.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Working Directory
Staging Area
Local Repo (head)
Remote Repo (master)

A

· Working Directory - your local directory that you are currently working on.
· Staging Area - files and changes that are ready to be committed.
· Local Repo (head) - your local repository is where you make local changes,
usually on your computer. HEAD is the last commit in your current branch
· Remote repo (master) - a remote repository is a version of your project that
is hosted on the Internet or a local network. The master, or main, branch is the default
branch and the official working version of your project.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

WORKING DIRECTORY STATES:
· Staged
· Modified
· Committed

A

WORKING DIRECTORY STATES:
· Staged - changes that have been prepared to be included in the next commit
· Modified - files that have changed since the last commit.
· Committed - when all staged changes are saved to the local repository

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

GIT COMMANDS:
· Git add
· Git commit
· Git fetch
· Git merge
· Git pull

A

GIT COMMANDS:
· Git add - adds a change in the working directory to the staging area.
· Git commit - saves your changes to the local repository
· Git fetch - publishes updates from the local repository to the remote branch
· Git merge - combines commits made across multiple branches into a single branch
· Git pull - updates local repository with changes from the remote repository

How well did you know this?
1
Not at all
2
3
4
5
Perfectly