Skip to content

Instantly share code, notes, and snippets.

@datfaf
Forked from uhhuhyeah/dropbox-and-git.sh
Created September 6, 2011 22:04
Show Gist options
  • Save datfaf/1199126 to your computer and use it in GitHub Desktop.
Save datfaf/1199126 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