Definitions Flashcards

1
Q

Version Control (VCS)

A

Records changes to a file, a set of files, or a program over time as a version. While allowing you to revert back to previous states.

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

Centerlized Version Control Systems (CVCSs)

A

A single server that contains all versioned files from a single place.

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

Distributed Version Control Systems (DVCSs)

A

Collaborative data sharing that allows each peer’s working copy of the codebase complete repository.

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

Three Git States

A
  1. Committed: stored in local database
  2. Modified: changed a file but not yet committed
  3. Staged: marked a modified file in its current version to go into your next commit
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Three Sections of a Git project workflow

A
  1. [HEAD] Git directory: is where Git stores the metadata and object database for your project. Points to the last commit you’ve made.
  2. Working directory: one version of the project, which holds actual files
  3. [Index] stores information about what will go into your next commit.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Two approaches to getting a Git Repository

A
  1. Import an existing project into git

2. Clones an existing project in Git

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

git clone

A

Clone a repository into a new directory

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

Initial commit

A

Start version-controlling existing files (as opposed to an empty directory)

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

Two main states of a git file or directory

A
  1. untracked files: Git doesn’t see any files in your working directory
    1. unmodified : completed/commited/cloned version <br></br>
      modified: changed since your last commit <br></br>
      staged: “Changes to be committed” heading
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Remote repositories

A

Versions of your project that are hosted on the Internet or network somewhere.

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

Two Types of Tags

A
  1. Lightweight

2. Annotated

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

Lightweight Tag

A

A immutable reference to a specific commit with a descriptive label.

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

Annotated Tag

A

A immutable reference to a specific commit with a descriptive label. That may include release notes, the meta-information about the release, and optionally a signature to verify the authenticity of the commit to which it points.

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

Branches

A

Mutable references

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

Sharing Tags Default

A

By default, the git push command doesn’t transfer tags to remote servers. <br></br> $ git push origin v1.5

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

Git Aliases

A

Create short cuts for git commands