微信上git使用

假设您刚刚创建了应用newapp。

首先,创建一个新的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

你可能感兴趣的:(微信上git使用)