假設您剛剛創(chuàng)建了應用newapp霞赫。
首先余赢,創(chuàng)建一個新的Git倉庫并且添加一個Git遠程倉庫sae东羹,地址為:https://git.sinacloud.com/newapp岔冀。
$ mkdir newapp&&cdnewapp
$ git init
$ git remote add sae https://git.sinacloud.com/newapp
上傳代碼个榕。如部署Git的主分支(master)的代碼到新浪云服務器上的版本1中:
$ touch index.php
$ git add index.php
$ git commit -m"initial commit"
$ git push sae master:1
從新浪云服務器上刪除版本1的代碼篡石。
$ git push sae :1