Good design is design that changes behavior for the better.


Managing files for GAE with Git and Dropbox

At last, I started to use git to manage files that are hosting on GAE. For backup and remote access, I use Dropbox for the git repository. Here is the memo.



1) Download Dropbox and launch it. (Create account if you don’t have the one.)
2) Install Git. If you use Mac, you can install it with MacPorts

$ sudo port install git-core

3) Create a bare repository in Dropbox directory

$ cd ~/Dropbox
$ mkdir repo
$ cd repo
$ mkdir project_name.git
$ cd project_name.git
$ git --bare init

4) Go to the directory that contains source files, and then push the files to the git repository

$ cd ~/project_name
$ git init
$ git add .
$ git commit -m "initial commit"
$ git push ~/Dropbox/repo/project_name.git master
$ git remote add origin ~/Dropbox/repo/project_name.git
Managing files for GAE with Git and Dropbox