Concept of Git Flashcards

1
Q

Git

A

Git is a version control system (VCS) that allows developers to track changes to source code and work (collaborate) on the project as a team

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

Main components of git

A

Repository
Commit
Branch
Tag
Merge

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

Repository

A

is a place where all files and history of changes of a project is stored

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

Commit

A

Fixing changes in a repository

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

Branch

A

Separate line of code that can be created to work on specific functionality or fix bugs

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

Tag

A

A label that marks specific commit as important or release version

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

Git flow

A

Methodology for working with git. It defines a standard of rules and branches for their use e.g. master, develop, feature, hotfix, release. The methodology streamline project work and enable more effective team collaboration.

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

Master

A

stores the stable version of the project

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

Develop

A

stores the current version of the project that the developer is working on

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

What is a working copy in git

A

A working copy in git is a local copy of a repository on the developer’s computer. It contains project files and a history of changes. It doesn’t affect the repository itself until changes are committed

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

Service directory (index)

A

This is the intermediate between the working copy and the repository.
This is where changes are tracked before committing.
Files needed in the next commit are added, files not needed are deleted.

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

Git init

A

creating a new repository

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

Git clone

A

cloning an existing repository on the computer

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

Git add

A

add files to the service directory

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

Git commit

A

fixing changes to the repository

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

Git push

A

sending changes from the local repository to a remote server

17
Q

Git pull

A

getting changes from the remote server and combining them with local changes

18
Q

Git branch

A

create, switch and delete branches

19
Q

Git merge

A

merging changes from one branch to another

20
Q

Git tag

A

creating and merging tag

21
Q

Git status

A

check status of changes in the working copy and service directory