Skip to content

Instantly share code, notes, and snippets.

@mortonfox
Created January 28, 2014 20:17
Show Gist options
  • Save mortonfox/8675448 to your computer and use it in GitHub Desktop.
Save mortonfox/8675448 to your computer and use it in GitHub Desktop.
backup one of my github repos
#!/bin/sh
reponame=$1
git clone https://github.com/mortonfox/$reponame.git $reponame
zip -9qr $reponame.zip $reponame
(cd $reponame; git bundle create ../$reponame.bundle --all)
rm -fr $reponame
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment