Git Introduction Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

This shows you the current version installed on you PC.

A

git –version

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

To set your username, type and execute these commands

A

git config –global user.name “YOUR_USERNAME” and git config –global user.email “YOUR_EMAIL”

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

To initialize project

A

git init

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

A file is in the … when all the changes made to the file have been saved in the local repo. Files in the committed stage are files ready to be pushed to the remote repo (on GitHub).

A

committed state

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

A file in the … has some changes made to it but it’s not yet saved. This means that the state of the file has been altered from its previous state in the committed state.

A

modified state

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

A file in the … means it is ready to be committed. In this state, all necessary changes have been made so the next step is to move the file to the commit state.

A

staged state

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

When we first initilize a project, it is not being tracked by git

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

To track the file by git

A

git add

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

If you want to add a specific file, maybe one named about.txt

A

git add about.txt

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

to know what state your file is in, you can run the … command.

A

git status

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

The next state for a file after the staged state is the …

A

committed state

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