bayleedev / reflog-review

:mag: Don't be scared of the GIT reflog, review it easily!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The reflog doesn't have to scare you.

You never really lose a commit in GIT, but sometimes it is harder then it should be to recover it. This tool allows you easily review commits in the reflog one at a time.

Just type git review and this will show you the diff, commit by commit, as it iterates the reflog, until you find the commit you want.

Usage

git review

Commands

j - next commit
k - previous commit
s - show current head
p - pick commit
q - quit
? - print help

Install

gem install reflog-review

Add this to your .gitconfig file.

[alias]
  review = !sh -c 'reflog-review'

About

:mag: Don't be scared of the GIT reflog, review it easily!

License:MIT License


Languages

Language:Ruby 100.0%