Skip to content

bobo96run/git-branch-backup

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-branch-backup

Creates a local backup of your branch. Usefull to do before git-rebase in case it goes wrong so you do not have to go reflog diving.

Assuming you are standing on master:

$ git branch-backup
Created backup branch 'master.backup1'

$ git branch-backup
Created backup branch 'master.backup2'

et cetera.

When you are done, you can delete backups with:

$ git branch -d master.backup{1..666}

Alias for convenience:

$ git config --global alias.bb branch-backup

Dependencies

  • zsh
  • coreutils
  • sed

For tests:

Installation

# make install

Tests

$ make check

About

Create local backup branch

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Perl 58.1%
  • Shell 31.9%
  • Makefile 10.0%