Last Updated: February 25, 2016
·
1.433K
· rifat

git-dropbox :: Backup your Git repo in Dropbox

git-dropbox

a dropbox wrapper for git

Installation

$ curl -skL http://git.io/git-dropbox > /usr/local/bin/git-dropbox
$ chmod +x /usr/local/bin/git-dropbox

Usage

First you have to set your Dropbox Git repository path -

$ git config --global dropbox.path <path>

For example I have my dropbox installed in ~/Dropbox. So, I've created a folder called Git in there and then run the following command in my terminal -

$ git config --global dropbox.path ~/Dropbox/Git

Now, to enable dropbox support for any git repository, do the following -

$ git dropbox init

Now, to push your changes to dropbox -

$ git dropbox push

If you run git dropbox for at least once. Then, It'll create an alias db for you. So, you can do git db <command> instead of git dropbox <command> after the first run.

GitHub Repo :: https://github.com/torifat/git-dropbox

This work is based on - http://coderwall.com/p/zf8rhw