Git笔记--SAE

来源:互联网 发布:2017年网络新词 编辑:程序博客网 时间:2024/06/05 10:26


保存Git用户名和密码:

%USERPROFILE%\_netrc文件中

添加如下内容,可以避免每次push时重复输入用户名和密码(未启用动态口令)

machine git.sinacloud.com

login安全邮箱

password密码


创建一个新的Git仓库并且添加一个Git远程仓库sae

<span style="color:#000000;"><span style="font-size:14px;"><span style="font-family:SimSun;">cd newappgit initgit remote add sae https://git.sinacloud.com/newapp<strong></strong></span></span></span>

首次创建分支(版本1

<span style="font-family:SimSun;"><span style="font-size:14px;">git add .git commit -am "xxx"git push sae master:1</span></span>

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

git push sae :1
版本间切换

git checkout 1
创建并切换版本

git branch 2git push sae 2







0 0