Private Git Repos Hosted on DropBox

Don't want to shell out to GitHub for a private repository? Use Dropbox instead. You won't get all the collaboration tools that come with GitHub but at least you can keep your source code private and yet distributed without having to setup a server.

Install DropBox on your computer if you haven't already. [1]

$ cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf -
$ ~/.dropbox-dist/dropboxd

Create a new folder for your repos inside the DropBox folder called git_repos and create a bare repo inside.

$ cd /path/to/Dropbox/git_repos
$ git --bare init

Add that Repository to your existing project and commit! Your code will now be available on all of your DropBox machines.

$ git remote add dropbox file:///path/to/Dropbox/git_repos/my_repo
$ touch some_file
$ git add some_file
$ git commit -m 'my new file!'
$ git push dropbox

Could also setup Dropbox on your server during installation and deployment. This way you could have an up to date version of your repository on the server and git pull your production branch accordingly.

[1]This is my referral link for DropBox. If you sign up I get another 500MB in my account which is a hell of a lot of git repos. Hook me up if you don't mind.

Afterword

I am currently working on a side project where the primary goal is to explore many of the widely-used open source alternatives to some of the pieces we attempted to build in-house at my last job: a werkzeug-powered app framework, a job queue, a local cache layer. But also to explore some of the other technologies that have become popular over the past few years: NoSQL, Node.js and who knows what else.

Posts (so far) in this Series

Comments !

About

Started writing one year ago, the day after heading out to travel around the world for a year without a cause.
Current Location: New York, New York

Previously:
Mexico City, Mexico
Tokyo, Japan
Hanoi, Vietnam
Vientiane, Laos
Phuket, Thailand
Kathmandu, Nepal
Rajastan, India
Kerala, India
Mumbai, India
Freetown, Sierra Leone
Koidu, Sierra Leone
Mombasa, Kenya
Nairobi, Kenya
Kigali, Rwanda
Rwinkwavu, Rwanda
Boston, MA

Latest Posts

Port Forward an old Airport Express

If Developers Took Steroids

We Need Elon Musk

Crossword Scraper

Git Conflicts in your Binary Files

Japanese Sidewalk Interfaces

Introducing Kickbacker

Real Life: Google Glass Done Wrong

Tux Trashcans

How Angry are your Developers?

A 500 Startups Model for the Art World

Unsubscribe from Black Friday/Cyber Monday

Copyrighting Art into Obscurity

Crack WiFi Passwords with aircrack

Using Sandy as an Excuse to Email Spam Customers