diff --git a/wiki/dev/Git/进阶/常用技巧.md b/wiki/dev/Git/进阶/常用技巧.md index 0a408a0f..27a03e5d 100644 --- a/wiki/dev/Git/进阶/常用技巧.md +++ b/wiki/dev/Git/进阶/常用技巧.md @@ -19,6 +19,12 @@ Git 配置文件分为三级,系统级(--system)、用户级(--global) 2. **用户级**(~/.gitconfig):使用 `git config --global user.name "7wate"` ,`git config --global user.email "admin@7wate.com"` 来进行配置,该配置**对当前用户上所有的仓库有效**。 3. **目录级**(.git/config):使用 `git config --local user.name "7wate"` , `git config --local user.email "admin@7wate.com"` 来进行配置,**只对当前仓库生效。** +## Git 设置默认分支 + +```shell +git config --global init.defaultBranch +``` + ## Git 多平台换行符问题(LF or CRLF) **文本文件所使用的换行符,在不同的系统平台上是不一样的。**UNIX/Linux 使用的是 0x0A(LF),早期的 Mac OS 使用的是 0x0D(CR),后来的 OS X 在更换内核后与 UNIX 保持一致了。但 DOS/Windows 一直使用 0x0D0A(CRLF) 作为换行符。 diff --git a/wiki/dev/Python/入门/_category_.json b/wiki/dev/Python/入门/_category_.json new file mode 100644 index 00000000..0b16299d --- /dev/null +++ b/wiki/dev/Python/入门/_category_.json @@ -0,0 +1,8 @@ +{ + "label": "入门", + "position": 2, + "link": { + "type": "generated-index", + "title": "入门" + } +} \ No newline at end of file diff --git a/wiki/dev/Python/函数方法.md b/wiki/dev/Python/入门/函数方法.md similarity index 100% rename from wiki/dev/Python/函数方法.md rename to wiki/dev/Python/入门/函数方法.md diff --git a/wiki/dev/Python/基本语法.md b/wiki/dev/Python/入门/基本语法.md similarity index 100% rename from wiki/dev/Python/基本语法.md rename to wiki/dev/Python/入门/基本语法.md diff --git a/wiki/dev/Python/控制语句.md b/wiki/dev/Python/入门/控制语句.md similarity index 100% rename from wiki/dev/Python/控制语句.md rename to wiki/dev/Python/入门/控制语句.md diff --git a/wiki/dev/Python/数据结构.md b/wiki/dev/Python/入门/数据结构.md similarity index 100% rename from wiki/dev/Python/数据结构.md rename to wiki/dev/Python/入门/数据结构.md diff --git a/wiki/dev/Python/简介.md b/wiki/dev/Python/入门/简介.md similarity index 100% rename from wiki/dev/Python/简介.md rename to wiki/dev/Python/入门/简介.md diff --git a/wiki/dev/Python/面对对象.md b/wiki/dev/Python/入门/面对对象.md similarity index 100% rename from wiki/dev/Python/面对对象.md rename to wiki/dev/Python/入门/面对对象.md diff --git a/wiki/dev/Python/文化/_category_.json b/wiki/dev/Python/文化/_category_.json new file mode 100644 index 00000000..96197e79 --- /dev/null +++ b/wiki/dev/Python/文化/_category_.json @@ -0,0 +1,8 @@ +{ + "label": "文化", + "position": 1, + "link": { + "type": "generated-index", + "title": "文化" + } +} \ No newline at end of file diff --git a/wiki/dev/Python/进阶/_category_.json b/wiki/dev/Python/进阶/_category_.json new file mode 100644 index 00000000..33dcb032 --- /dev/null +++ b/wiki/dev/Python/进阶/_category_.json @@ -0,0 +1,8 @@ +{ + "label": "进阶", + "position": 3, + "link": { + "type": "generated-index", + "title": "进阶" + } +} \ No newline at end of file diff --git a/wiki/dev/Python/高级/_category_.json b/wiki/dev/Python/高级/_category_.json new file mode 100644 index 00000000..06934c33 --- /dev/null +++ b/wiki/dev/Python/高级/_category_.json @@ -0,0 +1,8 @@ +{ + "label": "高级", + "position": 4, + "link": { + "type": "generated-index", + "title": "高级" + } +} \ No newline at end of file