Last Updated: February 25, 2016
·
922
· markus-perl

Git Dropbox Remote Repo

With git you can easily use any directory as an remote repo. Dropbox offers a lot of free space and automatically backups files so why not using dropbbox as a git remote repo :-)

This tutorial should also works with Google Drive and Microsoft SkyDrive. Please make sure that the paths provided below match your local Dropbox / Google Drive / Skydrive folder.

To create a new remote dropbox repo first create an empty folder in your dropbox dir:

$ mkdir -p ~/Dropbox/git/my-project

Now, initialize Git:

$ git init --bare ~/Dropbox/git/my-project

Go to your project and add the new created dir as remote:

$ git remote add origin ~/Dropbox/git/my-project

That's it! Now you can push your repo to your dropbox folder:

$ git push origin master