Consider this scenario:
- Developer A commits : #n
- Dev. B makes commit # n + 1
- Dev. A makes commit # n + 2
- and commit # n + 3
and then discovers that in his commit # n + 2 he introduced a defect.
Like dev. Rollback of the last two commits and will continue to develop when committing # n + 1 ?
Tested git reset --hard HEAD~2 * , but returns to dev A commit #n .
git github reset
Marius Butuc Jan 21 '11 at 19:22 2011-01-21 19:22
source share