From d5957d8aec7e553ef389d38abfe85261c85e9282 Mon Sep 17 00:00:00 2001 From: 7Wate Date: Sun, 16 Oct 2022 16:23:25 +0800 Subject: [PATCH] =?UTF-8?q?Python=EF=BC=9A=E7=9B=AE=E5=BD=95=E7=BB=93?= =?UTF-8?q?=E6=9E=84=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wiki/dev/Git/进阶/常用技巧.md | 6 ++++++ wiki/dev/Python/入门/_category_.json | 8 ++++++++ wiki/dev/Python/{ => 入门}/函数方法.md | 0 wiki/dev/Python/{ => 入门}/基本语法.md | 0 wiki/dev/Python/{ => 入门}/控制语句.md | 0 wiki/dev/Python/{ => 入门}/数据结构.md | 0 wiki/dev/Python/{ => 入门}/简介.md | 0 wiki/dev/Python/{ => 入门}/面对对象.md | 0 wiki/dev/Python/文化/_category_.json | 8 ++++++++ wiki/dev/Python/进阶/_category_.json | 8 ++++++++ wiki/dev/Python/高级/_category_.json | 8 ++++++++ 11 files changed, 38 insertions(+) create mode 100644 wiki/dev/Python/入门/_category_.json rename wiki/dev/Python/{ => 入门}/函数方法.md (100%) rename wiki/dev/Python/{ => 入门}/基本语法.md (100%) rename wiki/dev/Python/{ => 入门}/控制语句.md (100%) rename wiki/dev/Python/{ => 入门}/数据结构.md (100%) rename wiki/dev/Python/{ => 入门}/简介.md (100%) rename wiki/dev/Python/{ => 入门}/面对对象.md (100%) create mode 100644 wiki/dev/Python/文化/_category_.json create mode 100644 wiki/dev/Python/进阶/_category_.json create mode 100644 wiki/dev/Python/高级/_category_.json 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