O'Reilly logo

Bazaar Version Control by Janos Gyerik

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Shelving changes

The shelving changes feature lets you to temporarily set aside changes in the working tree. You can select specific changes to be put "on a shelf" from where you can restore them later. Once on the shelf, the changes are reverted in the working tree to move them out of the way.

This is useful when in the following scenarios:

  • You want to keep your commits clean—some unrelated changes got mingled into your current main focus work and you want to set them aside to commit later.
  • You want to merge or pull from another branch but some pending changes that you don't want to commit yet are blocking your way
  • You want to revert some but not all of the changes within the files

An important thing to keep in mind is that the shelf is not part of ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required