Make Changes (Review edits and craft a commit transaction) Flashcards

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

$ git diff

A

Shows the file differences not yet staged.

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

$ git status

A

Lists all new or modified files to be committed.

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

$ git add [file]

A

Snapshots the file in preparation for versioning.

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

$ git diff –staged

A

Shows file differences between staging and the last file version.

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

$ git reset [file]

A

Unstages the file, but preserves it’s contents.

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

$ git commit -m “[descriptive message]”

A

Records file snapshots permanently in version history.

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