Skip to content

Commit

Permalink
fix: update docs
Browse files Browse the repository at this point in the history
Description:

Log:
  • Loading branch information
mikigo committed Jan 9, 2024
1 parent cc7e75d commit 5355158
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/youqu?color=%23F79431)
![Static Badge](https://img.shields.io/badge/UOS%2FDeepin/Ubuntu/Debian-Platform?style=flat&label=OS&color=%23F79431)
![Static Badge](https://img.shields.io/badge/Linux-Platform?style=flat&label=Platform&color=%23F79431)
![Website](https://img.shields.io/website?url=https%3A%2F%2Flinuxdeepin.github.io%2Fdeepin-autotest-framework%2F&up_color=%23F79431)
[![Built with Material for MkDocs](https://img.shields.io/badge/Material_for_MkDocs-526CFE?style=flat&logo=MaterialForMkDocs&logoColor=white&color=%23F79431)](https://squidfunk.github.io/mkdocs-material/)

[![Downloads](https://static.pepy.tech/badge/youqu/week)](https://pepy.tech/project/youqu)
[![Downloads](https://static.pepy.tech/badge/youqu/month)](https://pepy.tech/project/youqu)
Expand Down
6 changes: 6 additions & 0 deletions docs/comments.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,9 @@ comments: true


# 留言

<div>
<span style="color:#707070;font-size: small">
英雄不问出处,留言不管字数。
</span>
</div>
30 changes: 22 additions & 8 deletions docs/常见问题.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@ hide:
- navigation
---

## 提交代码时提示邮箱或者名称不对
## 1. 提交代码时提示邮箱或者名称不对

重新配置邮箱或者名称,然后重置生效:

```shell
git commit --amend --reset-author
```

## 怎么回滚到之前的版本
---------------

## 2. 怎么回滚到之前的版本

(1)查询历史提交记录

Expand All @@ -35,13 +37,17 @@ git reset --soft ${hash}
git reset --hard ${hash}
```

## 解决 git status 中文显示的问题
---------------------------

## 3. 解决 git status 中文显示的问题

```shell
git config --global core.quotePath false
```

## `apps` 目录下颜色有些是黄色的
---------------------

## 4. `apps` 目录下颜色有些是黄色的

`Pycharm``apps` 目录下应用库文件是黄色的,编辑器识别不到代码新增和修改;

Expand All @@ -51,9 +57,11 @@ git config --global core.quotePath false

如此就可以了。

专业版 `Pycharm` 不存在这个问题。
专业版 `Pycharm` 一般不存在这个问题。

------------------------------

执行 `env.sh` 报错 `$'\r':未找到命令`
## 5. 执行 `env.sh` 报错 `$'\r':未找到命令`

出现这个问题你应该是在 windows 上打开或编辑过 `env.sh` 脚本,windows下的换行是回车符+换行符,也就是`\r\n`,而 `Linxu` 下是换行符 `\n``Linux` 下不识别 `\r`,因此报错。

Expand All @@ -64,7 +72,9 @@ git config --global core.quotePath false
sudo sed -i 's/\r//' env.sh
```

## 怎样为单独某一条用例配置执行超时时间
---------------------------

## 6. 怎样为单独某一条用例配置执行超时时间

在用例脚本中添加装饰器,如下:

Expand All @@ -74,11 +84,15 @@ def test_xxx_001():
pass
```

## 如何修复子仓库 master 分支游离头(detached head)
-----------------------

## 7. 如何修复子仓库 master 分支游离头(detached head)

修复所有子仓库默认master 分支游离头

```shell
cd youqu
git submodule foreach -q --recursive 'git checkout $(git config -f $toplevel/.gitmodules submodule.$name.branch || echo master)'
```

-------------------------

0 comments on commit 5355158

Please sign in to comment.