[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

CC BY-SA 4.0 This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Leave a Reply

Your email address will not be published. Required fields are marked *