Skip to content

Instantly share code, notes, and snippets.

@dnicolson
Created November 4, 2018 16:35
Show Gist options
  • Save dnicolson/a2ce3be8eddb8c4b50a855958484af9f to your computer and use it in GitHub Desktop.
Save dnicolson/a2ce3be8eddb8c4b50a855958484af9f to your computer and use it in GitHub Desktop.
Clone a bare git repo from Dropbox
curl -L https://www.dropbox.com/sh/xxx/yyy > project.git.zip
mkdir project.git
unzip project.git.zip -d project.git
git clone project.git
rm project.git.zip
rm -rf project.git
@varenc
Copy link

varenc commented Apr 8, 2020

I'm glad Dropbox's curl user-agent detection is still getting some use! Without that you'd just get serve the HTML...

Though if that obscure feature ever disappears you can change "/sh/" to "/sh/raw/" and you'll still get the zip (assuming it's a directory)

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