Domain 1: Intro to GitHub - Deck 1 Flashcards

1
Q

Version Control System (VCS)

A

A program or set of programs that tracks changes to a collectionc of files.

One goal of a VCS is to easily recall earlier versions of individual files or of the entire project. Another goal is to allow several team members to work on a project, even on the same files, at the same time without affecting each other’s work.

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

Software Configuration Management (SCM)

A

A term used interchangeably with Version Control System (VCS), though technically VCS is just one of the practices involved in SCM.

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

Distributed Architecture (Git)

A

A project’s complete history is stored both on the client and on the server.

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

Working Tree

A

The set of nested directories and files that contain the project that’s being worked on.

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

Repository (Repo)

A

The directory, located at the top level of a working tree, where Git keeps all the history and metadata for a project.

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

Bare Repository

A

A repository that isn’t part of a working tree; it’s used for sharing or backup. It is usually a directory with a name that ends in .git.

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

Blob Object

A

An object which contains an ordinary file.

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

Hash

A

A number produced by a function that represents the contents of a file or another object as a fixed number of digits. Git uses ones that are 160 bits long. One advantage to using them is that Git can tell whether a file has changed by applying the function to its contents and comparing the result to the previous function output.

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

Tree Object

A

An object which represents a directory; it contains names, hashes, and permissions.

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

Commit Object

A

An object which represents a specific version of the working tree.

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

Object

A

A Git repository contains four types of these, each uniquely identified by an SHA-1 hash. They are blob, tree, commit, and tag.

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

Tag Object

A

An object which is a name attached to a commit.

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

Commit

A

When used as a verb, it means to make its associative object. This action takes its name from a database operation. It is an action taken so that others can eventually see your changes, too.

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

code: to initialize a git repository

A

git init

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

The ______ is a hidden directory where Git operates.

A

repository

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

Notice how Git says octocat.txt is “untracked”? That means Git sees that octocat.txt is a ____ file.

A

new

17
Q

USe ____ ____ to add file to staging area to be tracked

A

git add

18
Q

A “_______” is a snapshot of our repository. This way if we ever need to look back at the changes we’ve made (or if someone else does), we will see a nice timeline of all changes.

git commit -m ‘Add all octocat txt files’

A

commit

19
Q

Think of ___ ___ as a journal that remembers all the changes we’ve committed so far, in the order we committed them. Try running it now:

A

git log

20
Q

The ___ _____ tells Git where to put our commits when we’re ready

A

push command