parent
cc7e75dfc7
commit
53551589fc
|
@ -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)
|
||||
|
|
|
@ -12,3 +12,9 @@ comments: true
|
|||
|
||||
|
||||
# 留言
|
||||
|
||||
<div>
|
||||
<span style="color:#707070;font-size: small">
|
||||
英雄不问出处,留言不管字数。
|
||||
</span>
|
||||
</div>
|
30
docs/常见问题.md
30
docs/常见问题.md
|
@ -3,7 +3,7 @@ hide:
|
|||
- navigation
|
||||
---
|
||||
|
||||
## 提交代码时提示邮箱或者名称不对
|
||||
## 1. 提交代码时提示邮箱或者名称不对
|
||||
|
||||
重新配置邮箱或者名称,然后重置生效:
|
||||
|
||||
|
@ -11,7 +11,9 @@ hide:
|
|||
git commit --amend --reset-author
|
||||
```
|
||||
|
||||
## 怎么回滚到之前的版本
|
||||
---------------
|
||||
|
||||
## 2. 怎么回滚到之前的版本
|
||||
|
||||
(1)查询历史提交记录
|
||||
|
||||
|
@ -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` 目录下应用库文件是黄色的,编辑器识别不到代码新增和修改;
|
||||
|
||||
|
@ -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`,因此报错。
|
||||
|
||||
|
@ -64,7 +72,9 @@ git config --global core.quotePath false
|
|||
sudo sed -i 's/\r//' env.sh
|
||||
```
|
||||
|
||||
## 怎样为单独某一条用例配置执行超时时间
|
||||
---------------------------
|
||||
|
||||
## 6. 怎样为单独某一条用例配置执行超时时间
|
||||
|
||||
在用例脚本中添加装饰器,如下:
|
||||
|
||||
|
@ -74,7 +84,9 @@ def test_xxx_001():
|
|||
pass
|
||||
```
|
||||
|
||||
## 如何修复子仓库 master 分支游离头(detached head)
|
||||
-----------------------
|
||||
|
||||
## 7. 如何修复子仓库 master 分支游离头(detached head)
|
||||
|
||||
修复所有子仓库默认master 分支游离头
|
||||
|
||||
|
@ -82,3 +94,5 @@ def test_xxx_001():
|
|||
cd youqu
|
||||
git submodule foreach -q --recursive 'git checkout $(git config -f $toplevel/.gitmodules submodule.$name.branch || echo master)'
|
||||
```
|
||||
|
||||
-------------------------
|
||||
|
|
Loading…
Reference in New Issue