how to undo bundle update

hey mike picture hey mike · Mar 12, 2012 · Viewed 16.3k times · Source

bundle update and bundle install is ver fantastic. However, is there a good way to undo bundle install and bundle update if something went wrong ?

Answer

mpapis picture mpapis · Mar 12, 2012

There is one obvious way:

git checkout -- Gemfile.lock

and then run

bundle install

It assumes you use git - but who does not now days, I have everything in git.