What does the command git reset –hard HEAD ~3 do?
A. Merges the last 3 commits to the master
B. Discards the last 3 commits
C. Does nothing
D. Resets the head to 3 commits before the current commit
Ans : Discards the last 3 commits