git-backup
A lot of Git trouble can be avoided by branching before powerful operations such as rebase. This Gem adds a Git subcommand called backup for making that easy.
Running,
git backup
Will effectively do,
git branch backup/your-current-branch-name-1
Running the command more than once for the same branch name will create backup/your-current-branch-name-2, backup/your-current-branch-name-3, and so on.
Installing from RubyGems.org
sudo gem install git-backup