Lesson 2 Flashcards
1
Q
HEAD
A
Last commit
2
Q
git checkout HEAD filename.txt
A
Returns working directory content to the way it was on last commit (Undoes changes)
3
Q
git reset HEAD filename.txt
A
Removes file from the “to be committed” list
4
Q
git reset first7CharactersOfShaCode
A
Resets to a previous commit in your commit history (makes it the new HEAD)