Version Control Flashcards

1
Q

Types of Version Control Systems

A

Local
Centralized
Distributed

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

Local database keeps
track of file versions

A

Local VCS

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

RCS (Revision Control System) is an example of a

A

Local VCS

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

VC systems either keep:

A

● actual copies of file versions; or
● patch sets, which are the set of additions /subtractions to a file.

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

A single server contains the file versions

A

Centralized VCS

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

Clients check out
individual files/folders
from the central server

A

Centralized VCS

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

Advantages of Centralized VCS

A

Collaboration with others is possible
Easy to administer file permissions

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

Disadvantage of Centralized VCS

A

✘ Single point of failure

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

Concurrent Versions System (CVS), Subversion and Perforce is an example of what kind VCS

A

Centralized VCS

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

In this type of VCS, the Machines fully mirror the repository, including the
history of changes

A

Distributed VCS

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

Peer-to-peer approach

A

Distributed VCS

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

Each peer is a valid
repository

A

Distributed VCS

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

TRUE or FALSE:

Distributed VCS addresses the single point failure issue of Centralized VCS

A

TRUE. Since in Distributed VCS, multiple users can have a copy of the repository

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

Disadvantage of Distributed VCS

A

✘ Large repositories may be impractical to mirror (either due to large files, or very long histories)

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

Give examples of Distributed VCS

A

Git, Mercurial, Bazaar, Darcs

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

Advantages of VCS

A

Backup & Restore
Short-term / Long-term undo
Synchronization
Track Changes
Track Ownership
Branching/Merging

17
Q

Save all your changes and jump to any
version at any time.

A

Backup & Restore

18
Q

No fear of experimental changes, whether short or long term.

A

Short-term / Long-term undo

19
Q

Stay up to date with teammates’ work.

A

Synchronization

20
Q

Track the development of each file, and
explain why the changes happened.

A

Track Changes

21
Q

Find out who made a particular change.

A

Track Ownership

22
Q

Make a copy of your code that you can modify in isolation. You can delete, or merge this copy back to the ‘main’ version.

A

Branching/Merging

23
Q

Where the files are stored

A

Repository

24
Q

Repositories can be ________ or _________

A

remote, local

25
Q

Local repos are also called the ________________

A

working copy

26
Q

a copy of another repository (all the files, and revision history)

27
Q

To record the changes in the VC
history/log, a version or ‘checkpoint’ that you can go back to any time

28
Q

The latest commit in the repository

29
Q

A copy of the code base

30
Q

TRUE or FALSE:

Each branch can evolve separately from other branches

31
Q

The stable code is usually found in a ______ branch (in Git this is called _________)

A

main, master

32
Q

Different branches can be merged together

33
Q

Conflicts must be _________

34
Q

When there are two or more conflicting
changes to the same file

35
Q

To get all the latest changes from the remote repo and put them in your local repo

A

Update/Sync

36
Q

A distributed version control system, Free and open-source software, Primarily a command line tool, Has 3rd party GUI and add-ons for IDEs

37
Q

A website/service designed to function with Git (but not other VCS)

Main function: Allows users to create git
repositories on their server

38
Q

Alternatives to GitHub

A

GitLabs, BitBucket