Lesson 2 Flashcards

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

HEAD

A

Last commit

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

git checkout HEAD filename.txt

A

Returns working directory content to the way it was on last commit (Undoes changes)

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

git reset HEAD filename.txt

A

Removes file from the “to be committed” list

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

git reset first7CharactersOfShaCode

A

Resets to a previous commit in your commit history (makes it the new HEAD)

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