简体   繁体   中英

How to reset some Ruby Gem files without git?

I have made some modifications to some gem files that's not tracked by git. How do I reset the gem files to it's used version in console (with bundler?) ?

I'm also using Ruby on Rails.

You can uninstall the gem

gem uninstall gem-name

And then do a

bundle install

should be the easiest solution

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM