Freitag, 7. Februar 2014

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.

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

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

Keine Kommentare:

Kommentar veröffentlichen