Domain 1: Intro to GitHub - Deck 3 Flashcards

1
Q

Alpha: 4 ways GitHub makes collaboration between multi developers more efficient..

A

access control, issue tracking and reporting, management, messaging

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

What are 3 states that a file moves through.. alpha

A

committed modified staged

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

The ______ ____ command creates a new Git repository.

It can be used to convert an existing, unversioned project to a Git repository or initialize a new, empty repository. Most other Git commands are not available outside of an initialized repository, so this is usually the first command you’ll run in a new project.

A

git init

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

Git knows your file exists and it has added it to a commit.

A. Committed

B. Modified

C. Staged

A

a

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

Git creates a hidden folder called _____ and stores references and commits for this repository in it.

A

.git

The .git folder contains three main types of objects: commits, trees, and blobs. Commits store information about who made a change and when they made it. Trees store information about the structure of the files in a project and blobs store the actual content of the files in a project.

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

Git knows your file exists and it is part of a commit. However, it also knows you’ve modified the file since the last committed.

A. Committed

B. Modified

C. Staged

A

b

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

Git is tracking your file to add it to the next commit.

A. Committed

B. Modified

C. Staged

A

c

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

These are new files that have been created but are not part of any commits yet.

A. tracked

B. untracked

c. git commit

d. git add

A

b

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

For Git to track a file, you’ll need to tell it to do so by using the ___ _____command.

A. git push

B. git touch

C. git commit

D. git add

A

d

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

$ touch breakfast.txt

run code so Git tracks this new file

$…

A

git add breakfast.txt

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

The ___ ____ is a place where all changes are held to be committed at the same time.

A

staging area

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

____ allow us to work on a feature while giving us the opportunity to keep or discard our work later on.

A

branches

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

is similar to the Linux rm command. This command deletes or removes a file from

A

git rm

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

is similar to the Linux mv command. This command can move or rename a file, directory, or symlink

A

git mv

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

allows a user to interactively review patches before adding to the current commit

A

git add -p

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

is an alias of $ git diff –cached, which shows all staged files compared to the named commit

A

git diff –staged

14
Q

is similar to the Linux diff command, and can show the changes between commits, changes between the working tree and index, changes between two trees, changes from a merge, and so on.

A

git diff

15
Q

shows you one or more object(s) such as blobs, trees, tags, and commits

A

git show

16
Q

produces patch text. A patch file is used to share your local changes with others without pushing your changes to the main branch of the repo.

A

git log -p

17
Q

automatically stages and commits the files that have been locally modified. New files which have not been published yet are not affected

A

git commit -a

18
Q
A