Skip to content

Instantly share code, notes, and snippets.

@trey
Created May 18, 2012 03:12
  • Star 28 You must be signed in to star a gist
  • Fork 8 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save trey/2722927 to your computer and use it in GitHub Desktop.
Using Dropbox to Share Git Repositories

Using Dropbox to Share Git Repositories

First, create a Git subfolder inside your Dropbox folder. Then you can share the individual projects inside that folder with whomever you want (or just use it for instant offsite backups).

From inside a Git project:

git clone --bare . ~/Dropbox/Git/gitproject.git
git remote add dropbox ~/Dropbox/Git/gitproject.git

When you're ready to push:

git push dropbox master

Your Collaborator's View

Your collaborator would work on the project like so (inside the folder where they want their project to live):

git clone ~/Dropbox/Git/gitproject.git

If they want to have a dropbox remote instead of the default origin:

git remote add dropbox ~/Dropbox/Git/gitproject.git

They would then push the same way:

git push dropbox master

To get the other person's changes, it's the standard deal:

git pull dropbox master

Source

@trey
Copy link
Author

trey commented May 18, 2012

former location

This is a Solutions Log post.

@milosmatic
Copy link

Just what I needed :)

@littlenomads
Copy link

Awesome - just getting my head around all this git stuff. Does anyone know if you can use google drive as a repo?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment