~/Dropbox/Git $ git init --bare djgame.git
~/Dropbox/Git $ cd ~/djgame.git
~/project $ git init
~/project $ git add .
~/project $ git commit -m "first commit"
~/project $ cd ~/Dropbox/Git
~/project $ git remote add origin ~/Dropbox/git/project.git
~/project $ git push -u origin master
回家後
要放的目錄$ git clone ~/Dropbox/Git/djgame.git/
之後要更新的時候就
git add .
git commit -m "寫註解"
git push -u origin master
reference
http://www.mrmu.com.tw/2011/05/06/git-using-dropbox-as-server/#more-1625
http://stackoverflow.com/questions/1960799/using-gitdropbox-together-effectively/1961515#1961515
沒有留言:
張貼留言