." generated with Ronn-NG/v0.10.1 ." github.com/apjanke/ronn-ng/tree/0.10.1 .TH “BUNDLE-PRISTINE” “1” “July 2025” “” .SH “NAME” fBbundle-pristinefR - Restores installed gems to their pristine condition .SH “SYNOPSIS” fBbundle pristinefR .SH “DESCRIPTION” fBpristinefR restores the installed gems in the bundle to their pristine condition using the local gem cache from RubyGems. For git gems, a forced checkout will be performed. .P For further explanation, fBbundle pristinefR ignores unpacked files on disk. In other words, this command utilizes the local fB.gemfR cache or the gem’s git repository as if one were installing from scratch. .P Note: the Bundler gem cannot be restored to its original state with fBpristinefR. One also cannot use fBbundle pristinefR on gems with a ‘path’ option in the Gemfile, because bundler has no original copy it can restore from. .P When is it practical to use fBbundle pristinefR? .P It comes in handy when a developer is debugging a gem. fBbundle pristinefR is a great way to get rid of experimental changes to a gem that one may not want. .P Why use fBbundle pristinefR over fBgem pristine --allfR? .P Both commands are very similar. For context: fBbundle pristinefR, without arguments, cleans all gems from the lockfile. Meanwhile, fBgem pristine --allfR cleans all installed gems for that Ruby version. .P If a developer forgets which gems in their project they might have been debugging, the Rubygems fBgem pristine [GEMNAME]fR command may be inconvenient. One can avoid waiting for fBgem pristine --allfR, and instead run fBbundle pristinefR.