Search code examples
ruby-on-railsrvmbundler

how to undo bundle update


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 ?


Solution

  • 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.