例如,在下面的master分支中,我只需要丢弃提交af5c7bf16e6f04321f966b4231371b21475bc4da,这是由于先前的重新设置而导致的第二次提交:
commit 60b413512e616997c8b929012cf9ca56bf5c9113
Author: Luca G. Soave <luca.soave@gmail.com>
Date: Tue Apr 12 23:50:15 2011 +0200
add generic config/initializers/omniauth.example.rb
commit af5c7bf16e6f04321f966b4231371b21475bc4da
Author: Luca G. Soave <luca.soave@gmail.com>
Date: Fri Apr 22 00:15:50 2011 +0200
show github user info if logged
commit e6523efada4d75084e81971c4dc2aec621d45530
Author: Luca G. Soave <luca.soave@gmail.com>
Date: Fri Apr 22 17:20:48 2011 +0200
add multiple .container at blueprint layout
commit 414ceffc40ea4ac36ca68e6dd0a9ee97e73dee22
Author: Luca G. Soave <luca.soave@gmail.com>
Date: Thu Apr 21 19:55:57 2011 +0200
add %h1 Fantastic Logo + .right for 'Sign in with Github'
我要养
- 第一次提交60b413512e616997c8b929012cf9ca56bf5c9113,
- 第三次提交e6523efada4d75084e81971c4dc2aec621d45530和
- 最后一次提交414ceffc40ea4ac36ca68e6dd0a9ee97e73dee22
“扔掉”只是第二次提交af5c7bf16e6f04321f966b4231371b21475bc4da
我怎样才能做到这一点?在此先感谢Luca