2012-03-12 84 views
36

bundle updatebundle install是太棒了。但是,如果出現問題,是否有一個好辦法來undobundle installbundle update如何撤消包更新

回答

81

有一個明顯的方法:

git checkout -- Gemfile.lock 

它假定您使用git - 但誰現在不幾天,我在git的一切。

+0

對不起,'--'是什麼意思?謝謝 – 2012-03-12 15:27:20

+8

默認情況下,git checkout嘗試檢出git分支,如果你指定' - '它知道它必須檢出文件......只有在你的分支名稱與你的某個文件相同時 - 但它是一個好習慣。 – mpapis 2012-03-12 15:30:22