Skip to content

Instantly share code, notes, and snippets.

@michaelgruber
Last active August 29, 2015 13:56
Show Gist options
  • Select an option

  • Save michaelgruber/9232456 to your computer and use it in GitHub Desktop.

Select an option

Save michaelgruber/9232456 to your computer and use it in GitHub Desktop.
#!/bin/sh
DEST=~/Dropbox/Git\ Backups/
REPO=$(basename "`git rev-parse --show-toplevel`")
(git bundle create "${DEST}${REPO}.bundle" --all)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment