Created
November 29, 2010 23:31
-
-
Save uhhuhyeah/720837 to your computer and use it in GitHub Desktop.
Use Dropbox as a remote git repo
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
# 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