Consider this scenario:
- Developer A does a commit: #n
- Dev. B does commit #n+1
- Dev. A does commit #n+2
- and commit #n+3
and then discovers that in his commit #n+2 he introduced a defect.
How can dev. A rollback his last 2 commits and continue developing on commit #n+1?
Tried git reset --hard HEAD~2
*, but it's coming back to dev A's commit #n.