Using Dropbox folder as a Git remote
installation process
- Install by using pip
pip install git-remote-dropbox
- Generate an OAuth 2 token by using developer app console
- create Dropbox API app token:
- with "Full Dropbox" access if you're going to be using Dropbox's sharing features to use git-remote-dropbox in a multi-user setup
- or with "App folder" access if you prefer use single-user setup
- and create an access token for yourself
- Save your OAuth token in
~/.config/git/git-remote-dropbox.json
or~/.git-remote-dropbox.json
file. The file should looks like this:
{
"default": "xxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxx"
}
NOTE: see details in authored GitHub page
lets you use Dropbox folder (or a shared folder) as a Git remote!
Once the helper is installed, use it like so:
- clone dropbox folder as a repo:
git clone "dropbox:///path/to/repo" -b master
- add remote to existing repo:
git remote add origin "dropbox:///path/to/repo"
NOTE: The repository directory will be created automatically the first time you push.
links