REWRITE HISTORY Flashcards
Git Commands
1
Q
apply any commits of current branch ahead of specified one
A
git rebase [branch]
2
Q
clear staging area, rewrite working tree from specified commit
A
git reset –hard [commit]
apply any commits of current branch ahead of specified one
git rebase [branch]
clear staging area, rewrite working tree from specified commit
git reset –hard [commit]