> wget --no-check-certificate -O dropbox.tar.gz "https://www.dropbox.com/download?plat=lnx.x86_64"
> tar xvfz dropbox.tar.gz
> cd .dropbox-dist ; ./dropboxd
這時候會出現一串URL,用browser去連那個URL,然後輸入dropbox的帳號密碼。
> ./dropboxd &
2. 安裝git
> sudo yum install git
3. 設定git
> git config --global user.name "yourname"
> git config --global user.email "username@e-mail"
> git config --global alias.st status
> git config --global alias.co checkout
> git config --global color.ui true
> git config --global credential.helper cache
> git config --global credential.helper 'cache --timeout=3600'
> git config --global http.sslVerify false
4. dropbox上repository設定
> mkdir -p ~/Dropbox/Project/newproject
> cd ~/Dropbox/Project/newproject
> git init --bare
5. 開發目錄repository設定
> mkdir -p ~/Project/newproject
> cd ~/Project/newproject
> git init
把code copy進~/Project/newproject目錄下
6. commit code到dropbox
> git add .
> git commit -m "initial version"
> git remote add dropbox ~/Dropbox/Project/newproject
> git push dropbox master
> git push dropbox master
7. 測試pull
刪除project目錄
> rm -rf ~/Project/newproject
重建project目錄
> mkdir ~/Project/newproject
> git init
> git remote add dropbox ~/Dropbox/Project/newproject
> git remote add dropbox ~/Dropbox/Project/newproject
> git pull dropbox master