git仓库

一 git初始化及仓库创建

基本信息设置

1、设置用户名:

git config --global user.name “maybebeautiful”

2、设置用户名邮箱:

git config --global user.email 2357504755@qq.com

3、查看设置:

Git config --list

初始化一个新的git仓库:

1、创建文件夹:mkdir test

2、在文件内初始化Git(创建Git仓库)

cd test;

Git init;

向仓库中添加文件:

1、先创建一个文件:Touch a1.php

2、先从工作区添加到暂存区:git status;

                           Git add a1.php

3、再将文件从暂存区添加到仓库:git status;

                               Git commit -m ‘add a1.php’

修改仓库文件:

Linux不好的:www.itcast.cn找到php,找到视频下载,内有linux视频

Vi a1.php(进入编辑,修改,wq保存)

Cat a1.php(查看a1.php的内容)

Git add a1.php

Git commit -m ‘描述

删除仓库文件:

Rm -rf a1.php

Git rm a1.php

Git commit -m ‘描述

git管理远程仓库:

Git克隆:git clone 仓库地址

Git同步到远程仓库:

1、创建文件:touch a2.php

2、添加到暂存区:git add a2.php

3、添加到本地仓库:git commit -m ‘描述

4、添加到远程仓库:git push

注意:当push报错时,(the requested URL returned error:403 Forbidden while accessing

私有项目,没有权限,输入用户名密码,或者远程地址采用这种类型:

Vi .git/config

#

[remote “origin”]

  Url =https://github.com/用户名/仓库名.git

修改为:

[remote “origin”]

  Url =https://用户名:密码@github.com/用户名/仓库名.git

Githun pages 搭建网站

访问https://用户名.github.io

搭建步骤:

1)创建个人站点->新建仓库(注:仓库名必须是【用户名.github.io】)

2)在仓库下创建index.html文件即可

注意:github.pages 仅支持静态页面;仓库里面只能是.html文件

Project Pages 项目站点:

https://用户名.github.io/仓库名

搭建步骤:

1)进入项目主页,点击settings

2)settings页面,点击【Launch automatic pages generator】来自动生成主题页面

3)新建站点基础信息设置

4)选择主题

5)生成网页

测试流程:

需求分析(哪些适合自动化)->方案选择(选择合适框架)->环境准备->系统设计->编码

性能测试Jmeter&Loadrunner

性能测试Jmeter&Loadrunner

原文地址:https://www.cnblogs.com/uni5/p/12018009.html