Skip to content

Instantly share code, notes, and snippets.

@uhhuhyeah
Created November 29, 2010 23:31
Show Gist options
  • Save uhhuhyeah/720837 to your computer and use it in GitHub Desktop.
Save uhhuhyeah/720837 to your computer and use it in GitHub Desktop.
Use Dropbox as a remote git repo
# Instructions for setting up a remote repo on Dropbox
# Assuming project/repo called 'myrepo'
cd ~/Dropbox
mkdir -p git/myrepo.git
cd !$
git --bare init
cd ~/development/uhy/myrepo
git remote add dropbox file://$HOME/Dropbox/git/myrepo.git
git push dropbox master
# To pull
git clone -o dropbox file://$HOME/Dropbox/git/myrepo.git
# Which will add your repository locally, and automatically set up a remote called dropbox which auto–merges with master.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment