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 ?
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.
I went into Github, copied my old Gemfile.lock
that I wanted and pasted it into my Gemfile.lock
in my code and then ran bundle install
.