REWRITE HISTORY Flashcards

Git Commands

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

apply any commits of current branch ahead of specified one

A

git rebase [branch]

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

clear staging area, rewrite working tree from specified commit

A

git reset –hard [commit]

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