Skip to content

Instantly share code, notes, and snippets.

@leods92
Created June 30, 2012 19:04
Show Gist options
  • Save leods92/3025118 to your computer and use it in GitHub Desktop.
Save leods92/3025118 to your computer and use it in GitHub Desktop.
Shell script to pack git repository in a tarball and place it in Dropbox folder
#!/bin/sh
GIT_REPO="/path/to/git/repo"
cd $GIT_REPO
git archive --format=tar --prefix=package/ master | gzip > ~/Dropbox/repo.tar.gz && open ~/Dropbox
echo "Now generate the Dropbox link and add it to package.json."
@vjpr
Copy link

vjpr commented May 12, 2013

Awesome!

@vjpr
Copy link

vjpr commented May 12, 2013

For any wanderers stumbling across this - didn't initially work for me.

npm http GET https://www.dropbox.com/s/xxx/flat-ui-pro.tar.gz
npm ERR! fetch failed https://www.dropbox.com/s/xxx/flat-ui-pro.tar.gz
npm info retry will retry, error on last attempt: Error: Hostname/IP doesn't match certificate's altnames

Fixed above error by running npm config set strict-ssl false


Also make sure to copy the link from the Download File button, not the url of the page. I made that mistake.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment