This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # -*- mode: sh; -*- | |
| ## don't use git push to backup your private branches. Bundle only | |
| ## the recent commits (from all known branches) and write to a backup | |
| ## place. Simply invoke without arguments from within a working copy to | |
| ## back it up. Very lightwight and won't pollute the commit history. | |
| ## | |
| ## To 'restore', download the saved bundle, cd into your working copy and: | |
| ## (1) find which branches have any commits in this bundle: |