[Git/GitHub] 半砍掉重練的方法

從 [git – How can I remove a commit on github? – Stack Overflow] 學到的一招,拿已經被我搞得亂七八糟的 ibus-chewing 來試:

  1. git clone git@github.com:hiroshiyui/ibus-chewing.git
  2. git reset –hard fb5c8cc104
  3. git remote add upstream git://github.com/definite/ibus-chewing.git
  4. git fetch upstream
  5. git merge upstream/master
  6. git push origin +master

已發佈

分類:

作者:

標籤: