Basic Flashcards

1
Q

What does the term “delta” mean in the context of commits?

A

Compress a commit as a set of changes between one version of your repository and the next.

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

What happens when we type git status ?

A

We see the current branch, whether our Local repository is different from remote and the state of tracked and untracked files

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

The git status command shows us what is going on in our Local repository?

A

No, it shows our Working directory

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

What does the command git add <file>?

A

Adds all the changes to the Staging area

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

What is the Staging area?

A

Where we collect all changes we want to put in the repository

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

We can compare the commits to some […] of work.

A

meaningful chunk

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

After we add a message, where does our commit go?

A

To the local repository

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

The git push command takes our changes from […] and pushes to […]

A

Local repository, remote repository

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

The command git diff operates only in […]

A

Working directory

Not in Staging area or Local repository

But, for see the differece between Remote and Staging area we type git diff --staged

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

What is the command to see the difference between two specific commits?

A

git diff \<from commit\> \<to commit\>

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

How can we see the difference between a commit and a previous one?

A

git diff \<commit\>^!

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