Created
November 4, 2018 16:35
-
-
Save dnicolson/a2ce3be8eddb8c4b50a855958484af9f to your computer and use it in GitHub Desktop.
Clone a bare git repo from Dropbox
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
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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)