如果是自己的 git,沒有跟人家 sync..(或是還沒sync).
那就可以用 ...
git reset --hard ed2b7f3501f6這樣,用 git log 看,最後會在 commit ed2b7f3501f6 的地方。
這個 commit 後面的都不見了,,
git reset --hard ed2b7f3501f6這樣,用 git log 看,最後會在 commit ed2b7f3501f6 的地方。
$ git revert COMMIT-SHA
git log commit A ... commit B ... commit C ..就要反過來:
git revert A git revert B git revert C