Skip to content

Commit 4affd98

Browse files
committed
fix: github
1 parent 22116b1 commit 4affd98

File tree

1 file changed

+73
-6
lines changed

1 file changed

+73
-6
lines changed

github/github.md

+73-6
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,84 @@ https://mp.weixin.qq.com/s/DThGiP_fPG_szIZZ_3Jpdw
2525
*.inl text eol=native
2626
```
2727

28+
```editorconfig
29+
root = true
30+
31+
[*]
32+
charset = utf-8-bom
33+
insert_final_newline = true
34+
end_of_line = lf
35+
36+
37+
```
38+
39+
```bash
40+
41+
git rebase --abort
42+
43+
git rebase --continue
44+
45+
git diff develop_am300_build.1 feature_pla --stat
46+
47+
只合并指定目录
48+
将dev_new 的文件 合到当前分支
49+
# https://www.cnblogs.com/bky419/p/15190767.html
50+
git checkout dev_new src/main.js
51+
52+
git checkout dev_new src/view/folderName
53+
54+
git checkout develop_am300_build.1 src/view/folderName
55+
56+
#拒绝提交包含混合换行符的文件
57+
git config --global core.safecrlf true
58+
#允许提交包含混合换行符的文件
59+
git config --global core.safecrlf false
60+
#提交包含混合换行符的文件时给出警告
61+
git config --global core.safecrlf warn
62+
63+
64+
#提交时转换为LF,检出时不转换
65+
$ git config --global core.autocrlf inpu
66+
#提交时转换为LF,检出时转换为CRLF
67+
$ git config --global core.autocrlf true
68+
69+
70+
## dos2unix是一个专门用于将Windows风格的换行符(\r\n)转换为Unix风格换行符(\n)的工具。使用方法如下:
71+
72+
sudo apt-get install dos2unix
73+
74+
dos2unix filename
75+
76+
find /path/to/directory -type f -exec dos2unix {} \;
77+
78+
find ./ -name "*.cc" -exec dos2unix {} \;
79+
find ./ -name "*.h" -exec dos2unix {} \;
80+
find ./ -name "*.cpp" -exec dos2unix {} \;
81+
find ./ -name "*.xml" -exec dos2unix {} \;
82+
find ./ -name "*.txt" -exec dos2unix {} \;
83+
find ./ -name "*.cl" -exec dos2unix {} \;
84+
find ./ -name "*.mk" -exec dos2unix {} \;
85+
find ./ -name "*.md" -exec dos2unix {} \;
86+
find ./ -name "*.lua" -exec dos2unix {} \;
87+
find ./ -name "Makefile*" -exec dos2unix {} \;
88+
find ./ -name "*.sh" -exec dos2unix {} \;
89+
90+
find . \( -name "*.cc" -o -name "*.h" -o -name "*.cpp" -o -name "*.xml" -o -name "*.txt" -o -name "*.cl" -o -name "*.mk" -o -name "*.md" -o -name "*.lua" -o -name "Makefile*" -o -name "*.sh" \) -exec dos2unix {} \;
91+
92+
```
93+
94+
2895
git commit 规范
2996

3097
|类型 |用途 |示例 |
3198
|---------|---------|---------|
3299
| feat | 新功能 |feat: 添加PDF导出功能|
33-
| fix |Bug修复 |fix: 修复首页加载失败|
34-
|docs |文档更新 |docs: 更新API接口说明|
35-
|style| 代码样式调整(不影响逻辑) |style: 格式化用户模型代码|
36-
|refactor| 代码重构(非功能修改) |refactor: 优化订单查询SQL|
37-
|test| 测试相关 |test: 增加登录单元测试|
38-
|chore |构建/工具链改动 |chore: 更新webpack配置|
100+
| fix |Bug修复 |fix: 修复首页加载失败|
101+
| docs |文档更新 |docs: 更新API接口说明|
102+
| style |代码样式调整(不影响逻辑) |style: 格式化用户模型代码|
103+
| refactor| 代码重构(非功能修改) |refactor: 优化订单查询SQL|
104+
| test | 测试相关 |test: 增加登录单元测试|
105+
| chore |构建/工具链改动 |chore: 更新webpack配置|
39106

40107

41108
windows 终端设置代理

0 commit comments

Comments
 (0)