SAE 使用GIT

来源:互联网 发布:苹果mac怎么安装迅雷 编辑:程序博客网 时间:2024/05/22 18:22

记住密码:安装git-credential-winstore.exe

git bush 输入

git config --global credential.helper cache
git config --global credential.helper 'cache --timeout=3600'
设置缓存1个小时

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

首先,创建一个新的Git仓库并且添加一个Git远程仓库sae,地址为:https://git.sinacloud.com/newapp 。

$ mkdir newapp && cd newapp$ git init$ git remote add sae https://git.sinacloud.com/newapp

上传代码。如部署Git的主分支(master)的代码到SAE服务器上的版本1中:

$ touch index.php$ git add index.php$ git commit -m"initial commit"$ git push sae master:1

从SAE服务器上删除版本1的代码。

$ git push sae :1
0 0