I found this [1] in a comment where someone asked a similar question.  This really helps only if you are using a git repo though.  There are some good gems in this [2] thread too.<p>[1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;gilesbokett&#x2F;rewind" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;gilesbokett&#x2F;rewind</a><p>[2]: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=9784008" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=9784008</a>